Henri Verbeet : wined3d: Prefer bind flags over usage flags in texture2d_load_texture().
Alexandre Julliard
julliard at winehq.org
Fri Nov 2 18:03:19 CDT 2018
Module: wine
Branch: master
Commit: 49af0e73f72c6176e353db99c844db609c9aa720
URL: https://source.winehq.org/git/wine.git/?a=commit;h=49af0e73f72c6176e353db99c844db609c9aa720
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Fri Nov 2 13:21:14 2018 +0330
wined3d: Prefer bind flags over usage flags in texture2d_load_texture().
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 3254b85..902611c 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -1525,7 +1525,7 @@ BOOL texture2d_load_texture(struct wined3d_texture *texture, unsigned int sub_re
struct wined3d_box src_box;
BOOL depth;
- depth = texture->resource.usage & WINED3DUSAGE_DEPTHSTENCIL;
+ depth = texture->resource.bind_flags & WINED3D_BIND_DEPTH_STENCIL;
sub_resource = &texture->sub_resources[sub_resource_idx];
if (!depth && wined3d_settings.offscreen_rendering_mode != ORM_FBO
More information about the wine-cvs
mailing list