[gtk/wip/nobody/517-quartz-gl-context: 2/2] quartz: Update GL context on window resize
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/nobody/517-quartz-gl-context: 2/2] quartz: Update GL context on window resize
- Date: Fri, 29 Mar 2019 10:26:29 +0000 (UTC)
commit f264e0dbf96a8180676ee16b830aef5896ec1aba
Author: Philip Chimento <philip chimento gmail com>
Date: Fri Apr 10 00:10:01 2015 -0700
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 bc601bf709..12bac9798a 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"
@@ -1324,6 +1325,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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]