Zebediah Figura : wined3d: Refuse blits between height-scaled formats in the FBO blitter.

Alexandre Julliard julliard at winehq.org
Thu Apr 28 16:15:32 CDT 2022


Module: wine
Branch: master
Commit: 7df8cd35d5dc5066f4fe3795921900c810c6d658
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=7df8cd35d5dc5066f4fe3795921900c810c6d658

Author: Zebediah Figura <zfigura at codeweavers.com>
Date:   Wed Apr 27 21:23:58 2022 -0500

wined3d: Refuse blits between height-scaled formats in the FBO blitter.

Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wined3d/texture.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/wined3d/texture.c b/dlls/wined3d/texture.c
index ce283b05022..a73b3b55e4b 100644
--- a/dlls/wined3d/texture.c
+++ b/dlls/wined3d/texture.c
@@ -279,6 +279,9 @@ static bool fbo_blitter_supported(enum wined3d_blit_op blit_op, const struct win
     if ((wined3d_settings.offscreen_rendering_mode != ORM_FBO) || !gl_info->fbo_ops.glBlitFramebuffer)
         return false;
 
+    if ((src_resource->format_flags | dst_resource->format_flags) & WINED3DFMT_FLAG_HEIGHT_SCALE)
+        return false;
+
     /* Source and/or destination need to be on the GL side. */
     if (!(src_resource->access & dst_resource->access & WINED3D_RESOURCE_ACCESS_GPU))
         return false;




More information about the wine-cvs mailing list