mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-20 00:09:46 +00:00
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>
This commit is contained in:
parent
2e8bd2682a
commit
88220e0ee4
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue