mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
wined3d-1DTextures: 0004 - fix incorrect way to check WINED3D_POOL_MANAGED
This commit is contained in:
parent
d08487e304
commit
25c32643d1
@ -104,7 +104,7 @@ index 2a172ee..f81d7cf 100644
|
||||
+ return WINED3DERR_INVALIDCALL;
|
||||
+ }
|
||||
+
|
||||
+ if ((desc->usage & WINED3DUSAGE_DYNAMIC && (desc->access == WINED3D_RESOURCE_ACCESS_GPU | WINED3D_RESOURCE_ACCESS_CPU | WINED3D_RESOURCE_ACCESS_MAP))
|
||||
+ if (desc->usage & WINED3DUSAGE_DYNAMIC && wined3d_resource_access_is_managed(desc->access)
|
||||
+ || desc->usage & WINED3DUSAGE_SCRATCH)
|
||||
+ {
|
||||
+ WARN("Attempted to create a DYNAMIC texture in pool %s.\n", wined3d_debug_resource_access(desc->access));
|
||||
|
Loading…
Reference in New Issue
Block a user