[PATCH] winemac.drv: Include depth32+stencil pixel formats in enumeration.
Jan Sikorski
jsikorski at codeweavers.com
Mon Jan 18 07:18:17 CST 2021
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>
---
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;
--
2.29.2
More information about the wine-devel
mailing list