From: Christian Hergert Date: Tue, 22 Feb 2022 21:09:30 +0000 (-0800) Subject: macos: force pixel format without depth/stencil X-Git-Tag: archive/raspbian/4.6.5+ds-1+rpi1~1^2~19^2~3^2~72^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=76a58c40db82e76f550ee7950bf06db2b7e3d08a;p=gtk4.git macos: force pixel format without depth/stencil We don't need either depth or stencil buffers, so we want a pixel format without them so that things like glClear() can do less work. --- diff --git a/gdk/macos/gdkmacosglcontext.c b/gdk/macos/gdkmacosglcontext.c index 60e4436171..b062196ba8 100644 --- a/gdk/macos/gdkmacosglcontext.c +++ b/gdk/macos/gdkmacosglcontext.c @@ -330,6 +330,8 @@ create_pixel_format (int major, CGLPixelFormatAttribute attrs[] = { kCGLPFAOpenGLProfile, (CGLPixelFormatAttribute)kCGLOGLPVersion_Legacy, kCGLPFAAllowOfflineRenderers, /* allow sharing across GPUs */ + kCGLPFADepthSize, 0, + kCGLPFAStencilSize, 0, kCGLPFAColorSize, 24, kCGLPFAAlphaSize, 8, 0