Jan Sikorski : winemac.drv: Include depth32+stencil pixel formats in enumeration.

Alexandre Julliard julliard at winehq.org
Mon Jun 7 15:02:08 CDT 2021


Module: wine
Branch: stable
Commit: 52f5e431ede771696b505021138562ca0c5f28c7
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=52f5e431ede771696b505021138562ca0c5f28c7

Author: Jan Sikorski <jsikorski at codeweavers.com>
Date:   Mon Jan 18 14:18:17 2021 +0100

winemac.drv: Include depth32+stencil pixel formats in enumeration.

This is especially important for M1 GPUs as they don't support the 24/8 format.

Signed-off-by: Jan Sikorski <jsikorski at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 88220e0ee41640940e7686fe0cab7f1e0bfb42f1)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/winemac.drv/opengl.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/winemac.drv/opengl.c b/dlls/winemac.drv/opengl.c
index b66af0f1c47..9f02e93d376 100644
--- a/dlls/winemac.drv/opengl.c
+++ b/dlls/winemac.drv/opengl.c
@@ -741,7 +741,8 @@ static void enum_renderer_pixel_formats(renderer_properties renderer, CFMutableA
 
                         if (!(renderer.stencil_modes & depth_stencil_modes[stencil_mode].mode))
                             continue;
-                        if (accelerated && depth_stencil_modes[depth_mode].bits != 24 && stencil_mode > 0)
+                        if (accelerated && depth_stencil_modes[depth_mode].bits != 24 &&
+                            depth_stencil_modes[depth_mode].bits != 32 && stencil_mode > 0)
                             continue;
 
                         attribs[n++] = kCGLPFAStencilSize;




More information about the wine-cvs mailing list