Henri Verbeet : wined3d: Use "depth_size"/"stencil_size" to check for depth/stencil formats in fbo_blitter_blit().
Alexandre Julliard
julliard at winehq.org
Thu Jun 4 16:08:01 CDT 2020
Module: wine
Branch: master
Commit: f570c9b6554c20d730e6f547d6f3951733f0773c
URL: https://source.winehq.org/git/wine.git/?a=commit;h=f570c9b6554c20d730e6f547d6f3951733f0773c
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Thu Jun 4 15:49:58 2020 +0430
wined3d: Use "depth_size"/"stencil_size" to check for depth/stencil formats in fbo_blitter_blit().
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wined3d/texture.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wined3d/texture.c b/dlls/wined3d/texture.c
index cd3d4b4912..65e9da73b4 100644
--- a/dlls/wined3d/texture.c
+++ b/dlls/wined3d/texture.c
@@ -5859,7 +5859,7 @@ static DWORD fbo_blitter_blit(struct wined3d_blitter *blitter, enum wined3d_blit
if (blit_op == WINED3D_BLIT_OP_RAW_BLIT && dst_resource->format->id == src_resource->format->id)
{
- if (dst_resource->format_flags & (WINED3DFMT_FLAG_DEPTH | WINED3DFMT_FLAG_STENCIL))
+ if (dst_resource->format->depth_size || dst_resource->format->stencil_size)
blit_op = WINED3D_BLIT_OP_DEPTH_BLIT;
else
blit_op = WINED3D_BLIT_OP_COLOR_BLIT;
More information about the wine-cvs
mailing list