[PATCH 2/5] wined3d: Prefer bind flags over usage flags in texture2d_load_renderbuffer().
Henri Verbeet
hverbeet at codeweavers.com
Fri Nov 2 04:33:13 CDT 2018
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
dlls/wined3d/surface.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index cad5282f248..3254b850c26 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -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));
--
2.11.0
More information about the wine-devel
mailing list