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:
parent
49af0e73f7
commit
eed05ad890
|
@ -1473,7 +1473,7 @@ BOOL texture2d_load_drawable(struct wined3d_texture *texture,
|
||||||
unsigned int level;
|
unsigned int level;
|
||||||
RECT r;
|
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;
|
DWORD current = texture->sub_resources[sub_resource_idx].locations;
|
||||||
FIXME("Unimplemented copy from %s for depth/stencil buffers.\n",
|
FIXME("Unimplemented copy from %s for depth/stencil buffers.\n",
|
||||||
|
|
Loading…
Reference in New Issue