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@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 88220e0ee4)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
Jan Sikorski 2021-01-18 14:18:17 +01:00 committed by Michael Stefaniuc
parent 8d5c8f775e
commit 52f5e431ed
1 changed files with 2 additions and 1 deletions

View File

@ -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;