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

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:13 +03:30 committed by Alexandre Julliard
parent 58b681e920
commit 43e7568666
1 changed files with 1 additions and 1 deletions

View File

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