Enable auto-redraw of the GLArea on GTK3 175/head
authorAntoine Fontaine <antoine.fontaine@epfl.ch>
Sun, 21 Mar 2021 01:01:54 +0000 (02:01 +0100)
committerAntoine Fontaine <antoine.fontaine@epfl.ch>
Sun, 21 Mar 2021 16:43:35 +0000 (17:43 +0100)
Unfortunately, gtk_gl_area_queue_render doesn't seem to do anything, so
this is needed for now.

libs/gtkutil/glwidget.cpp

index 31f5bbdabf35cc9a64985d0a330ac34ef61ea741..f463b8b30268f2617a019c62287ba1a54bee8bee 100644 (file)
@@ -80,7 +80,7 @@ ui::GLArea glwidget_new(bool zbuffer)
 {
     auto self = ui::GLArea::from(GTK_GL_AREA(gtk_gl_area_new()));
     gtk_gl_area_set_has_depth_buffer(self, zbuffer);
-    gtk_gl_area_set_auto_render(self, false);
+    gtk_gl_area_set_auto_render(self, true); // FIXME
 
     self.connect("realize", G_CALLBACK(glwidget_context_created), nullptr);
     return self;