From: Antoine Fontaine Date: Sun, 21 Mar 2021 01:01:54 +0000 (+0100) Subject: Enable auto-redraw of the GLArea on GTK3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e3af470d9d19e105c9a9c6228931ee2645d09371;p=xonotic%2Fnetradiant.git Enable auto-redraw of the GLArea on GTK3 Unfortunately, gtk_gl_area_queue_render doesn't seem to do anything, so this is needed for now. --- diff --git a/libs/gtkutil/glwidget.cpp b/libs/gtkutil/glwidget.cpp index 31f5bbda..f463b8b3 100644 --- a/libs/gtkutil/glwidget.cpp +++ b/libs/gtkutil/glwidget.cpp @@ -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;