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

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:15 +03:30 committed by Alexandre Julliard
parent 49af0e73f7
commit eed05ad890
1 changed files with 1 additions and 1 deletions

View File

@ -1473,7 +1473,7 @@ BOOL texture2d_load_drawable(struct wined3d_texture *texture,
unsigned int level;
RECT r;
if (texture->resource.usage & WINED3DUSAGE_DEPTHSTENCIL)
if (texture->resource.bind_flags & WINED3D_BIND_DEPTH_STENCIL)
{
DWORD current = texture->sub_resources[sub_resource_idx].locations;
FIXME("Unimplemented copy from %s for depth/stencil buffers.\n",