summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2015-04-10 00:10:01 -0700
committerPhilip Chimento <philip.chimento@gmail.com>2018-05-08 23:00:38 -0700
commit2c0dd702c72498c3bc55374d6243e1e210c15fb1 (patch)
tree98ce3f02c79f87b8c324e797d09393cd24f0a4b0
parent39a28f50a07f2ed4927083e2e7463f7238acf177 (diff)
downloadgtk+-wip/nobody/517-quartz-gl-context.tar.gz
quartz: Update GL context on window resizewip/nobody/517-quartz-gl-context
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
-rw-r--r--gdk/quartz/gdkwindow-quartz.c4
1 files changed, 4 insertions, 0 deletions
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;
}