wined3d-1DTextures: 0004 - fix incorrect way to check WINED3D_POOL_MANAGED

This commit is contained in:
gloriouseggroll 2018-02-19 16:40:22 -05:00
parent d08487e304
commit 25c32643d1

View File

@ -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));