Henri Verbeet : wined3d: Prefer bind flags over usage flags in texture2d_load_renderbuffer().
Alexandre Julliard
julliard at winehq.org
Fri Nov 2 18:03:19 CDT 2018
Module: wine
Branch: master
Commit: 43e756866651b30836719001a08786bd6e0b977f
URL: https://source.winehq.org/git/wine.git/?a=commit;h=43e756866651b30836719001a08786bd6e0b977f
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Fri Nov 2 13:21:13 2018 +0330
wined3d: Prefer bind flags over usage flags in texture2d_load_renderbuffer().
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 cad5282..3254b85 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));
More information about the wine-cvs
mailing list