[gtk: 1/2] gdkmacosglcontext: fix compilation error




commit d5de73fb9d26576811b802f4a2745a3de0f6a53d
Author: Tom Schoonjans <Tom Schoonjans rfi ac uk>
Date:   Wed Mar 24 10:07:55 2021 +0000

    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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]