From 25c32643d129cbc5c21e5dc255d108f505ec8d3d Mon Sep 17 00:00:00 2001 From: gloriouseggroll Date: Mon, 19 Feb 2018 16:40:22 -0500 Subject: [PATCH] wined3d-1DTextures: 0004 - fix incorrect way to check WINED3D_POOL_MANAGED --- .../0004-wined3d-Create-dummy-1d-textures-and-surfaces.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/wined3d-1DTextures/0004-wined3d-Create-dummy-1d-textures-and-surfaces.patch b/patches/wined3d-1DTextures/0004-wined3d-Create-dummy-1d-textures-and-surfaces.patch index 16b76984..9ed60a55 100644 --- a/patches/wined3d-1DTextures/0004-wined3d-Create-dummy-1d-textures-and-surfaces.patch +++ b/patches/wined3d-1DTextures/0004-wined3d-Create-dummy-1d-textures-and-surfaces.patch @@ -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));