mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-16 04:06:46 +00:00
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:
parent
eed05ad890
commit
21f44e8fa6
|
@ -1450,7 +1450,7 @@ BOOL texture2d_load_sysmem(struct wined3d_texture *texture, unsigned int sub_res
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(texture->resource.usage & WINED3DUSAGE_DEPTHSTENCIL)
|
if (!(texture->resource.bind_flags & WINED3D_BIND_DEPTH_STENCIL)
|
||||||
&& (sub_resource->locations & WINED3D_LOCATION_DRAWABLE))
|
&& (sub_resource->locations & WINED3D_LOCATION_DRAWABLE))
|
||||||
{
|
{
|
||||||
texture2d_read_from_framebuffer(texture, sub_resource_idx, context,
|
texture2d_read_from_framebuffer(texture, sub_resource_idx, context,
|
||||||
|
|
Loading…
Reference in a new issue