From d5de73fb9d26576811b802f4a2745a3de0f6a53d Mon Sep 17 00:00:00 2001 From: Tom Schoonjans Date: Wed, 24 Mar 2021 10:07:55 +0000 Subject: [PATCH] gdkmacosglcontext: fix compilation error See https://developer.apple.com/documentation/appkit/nsopenglpixelformat/1436219-initwithattributes?language=occ --- gdk/macos/gdkmacosglcontext.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gdk/macos/gdkmacosglcontext.c b/gdk/macos/gdkmacosglcontext.c index a8b28b05be..b785beadc0 100644 --- a/gdk/macos/gdkmacosglcontext.c +++ b/gdk/macos/gdkmacosglcontext.c @@ -103,8 +103,7 @@ create_pixel_format (int major, NSOpenGLPFABackingStore, NSOpenGLPFAColorSize, 24, NSOpenGLPFAAlphaSize, 8, - - (NSOpenGLPixelFormatAttribute)nil + 0 }; if (major == 3 && minor == 2)