wined3d: Prefer bind flags over usage flags in texture2d_load_sysmem().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2018-11-02 13:03:16 +03:30 committed by Alexandre Julliard
parent eed05ad890
commit 21f44e8fa6
1 changed files with 1 additions and 1 deletions

View File

@ -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,