gdk: Remove a leftover reference to the renamed variable prefers_high_depth
authorJayson Reis <santosdosreis@gmail.com>
Sun, 23 Jul 2023 17:19:15 +0000 (19:19 +0200)
committerRené de Hesselle <dehesselle@web.de>
Thu, 19 Oct 2023 15:26:44 +0000 (17:26 +0200)
(cherry picked from commit aa888c0b3f775776fe3b71028396b7a8c6adb1d6)

gdk/macos/gdkmacosglcontext-private.h
gdk/macos/gdkmacosglcontext.c

index 4e83e5cb0efbcf88ea6dd777832a7ec978a50c8d..95966a4c12f4299fadb7d6cea92b0a56f7f0381f 100644 (file)
@@ -27,9 +27,7 @@
 #include "gdkmacosdisplay.h"
 #include "gdkmacossurface.h"
 
-#import <OpenGL/OpenGL.h>
-#import <OpenGL/gl3.h>
-#import <AppKit/AppKit.h>
+#import <epoxy/gl.h>
 
 G_BEGIN_DECLS
 
index 87e6e19fe0ace90c13f0af02297c0899f4109989..a706a407b5dd7bfde362f4a7650b509fdda92688 100644 (file)
@@ -21,7 +21,6 @@
 
 #include "gdkconfig.h"
 
-#include <OpenGL/gl3.h>
 #include <OpenGL/CGLIOSurface.h>
 #include <QuartzCore/QuartzCore.h>
 
@@ -499,7 +498,7 @@ gdk_macos_gl_context_begin_frame (GdkDrawContext *context,
   gdk_gl_context_make_current (GDK_GL_CONTEXT (self));
   gdk_macos_gl_context_allocate (self);
 
-  GDK_DRAW_CONTEXT_CLASS (gdk_macos_gl_context_parent_class)->begin_frame (context, prefers_high_depth, region);
+  GDK_DRAW_CONTEXT_CLASS (gdk_macos_gl_context_parent_class)->begin_frame (context, depth, region);
 
   gdk_gl_context_make_current (GDK_GL_CONTEXT (self));
   CHECK_GL (NULL, glBindFramebuffer (GL_FRAMEBUFFER, self->fbo));