Henri Verbeet : wined3d: Use "depth_size" to check for a depth format in resolve_depth_buffer().
Alexandre Julliard
julliard at winehq.org
Thu Jun 4 16:08:01 CDT 2020
Module: wine
Branch: master
Commit: 28145b97eba69a32a97af7aa2a957169f8e5f43c
URL: https://source.winehq.org/git/wine.git/?a=commit;h=28145b97eba69a32a97af7aa2a957169f8e5f43c
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Thu Jun 4 15:50:00 2020 +0430
wined3d: Use "depth_size" to check for a depth format in resolve_depth_buffer().
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wined3d/device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 2ce3e346ef..59b53aa355 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -1695,7 +1695,7 @@ static void resolve_depth_buffer(struct wined3d_device *device)
if (!(dst_texture = state->textures[0]))
return;
dst_resource = &dst_texture->resource;
- if (!(dst_resource->format_flags & WINED3DFMT_FLAG_DEPTH))
+ if (!dst_resource->format->depth_size)
return;
if (!(src_view = state->fb.depth_stencil))
return;
More information about the wine-cvs
mailing list