Commit eed05ad8 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

parent 49af0e73
...@@ -1473,7 +1473,7 @@ BOOL texture2d_load_drawable(struct wined3d_texture *texture, ...@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment