From 2c0dd702c72498c3bc55374d6243e1e210c15fb1 Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Fri, 10 Apr 2015 00:10:01 -0700 Subject: quartz: Update GL context on window resize The previous version of this patch sent an update message to the NSOpenGLContext in a GdkGLContext::update vfunc, but that vfunc does not exist any more. See: #517 --- gdk/quartz/gdkwindow-quartz.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c index 873fb992e8..40bbefc78f 100644 --- a/gdk/quartz/gdkwindow-quartz.c +++ b/gdk/quartz/gdkwindow-quartz.c @@ -26,6 +26,7 @@ #include "gdkwindowimpl.h" #include "gdkprivate-quartz.h" #include "gdkglcontext-quartz.h" +#include "gdkquartzglcontext.h" #include "gdkquartzscreen.h" #include "gdkquartzcursor.h" @@ -1316,6 +1317,9 @@ move_resize_window_internal (GdkWindow *window, } } + if (window->gl_paint_context != NULL) + [GDK_QUARTZ_GL_CONTEXT (window->gl_paint_context)->gl_context update]; + GDK_QUARTZ_RELEASE_POOL; } -- cgit v1.2.1