]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
gtkutil: fix gtk3 compilation (produced build still doesn't work anyway)
authorThomas Debesse <dev@illwieckz.net>
Thu, 11 Mar 2021 08:23:00 +0000 (09:23 +0100)
committerThomas Debesse <dev@illwieckz.net>
Thu, 11 Mar 2021 08:54:19 +0000 (09:54 +0100)
libs/gtkutil/glwidget.cpp

index 52cec49cf2a58d329001a7ad12a2e1ad7dfc4926..53478d0df0fe354e62fb9311994c016d2de75412 100644 (file)
@@ -78,7 +78,7 @@ GdkGLContext *glwidget_context_created(ui::GLArea self)
 
 ui::GLArea glwidget_new(bool zbuffer)
 {
-    auto self = ui::GLArea(GTK_GL_AREA(gtk_gl_area_new()));
+    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);