[gtk/wip/nobody/517-quartz-gl-context: 893/893] quartz: Update GL context on window resize



commit 7a4505998df6df596875898174a47a6f01697ade
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]