Henri Verbeet : wined3d: Prefer bind flags over usage flags in texture2d_load_sysmem().
Module: wine Branch: master Commit: 21f44e8fa62e2e9dd32d0f5ec9f53133d903af96 URL: https://source.winehq.org/git/wine.git/?a=commit;h=21f44e8fa62e2e9dd32d0f5ec... Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Fri Nov 2 13:21:16 2018 +0330 wined3d: Prefer bind flags over usage flags in texture2d_load_sysmem(). Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/wined3d/surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 99cc1a5..5f5c53a 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -1450,7 +1450,7 @@ BOOL texture2d_load_sysmem(struct wined3d_texture *texture, unsigned int sub_res return TRUE; } - if (!(texture->resource.usage & WINED3DUSAGE_DEPTHSTENCIL) + if (!(texture->resource.bind_flags & WINED3D_BIND_DEPTH_STENCIL) && (sub_resource->locations & WINED3D_LOCATION_DRAWABLE)) { texture2d_read_from_framebuffer(texture, sub_resource_idx, context,
participants (1)
-
Alexandre Julliard