summaryrefslogtreecommitdiff
path: root/gtk/gtkglarea.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkglarea.c')
-rw-r--r--gtk/gtkglarea.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkglarea.c b/gtk/gtkglarea.c
index 00f0cf5449..eba440a1af 100644
--- a/gtk/gtkglarea.c
+++ b/gtk/gtkglarea.c
@@ -296,7 +296,10 @@ gtk_gl_area_realize (GtkWidget *widget)
gtk_widget_set_window (widget, window);
if (context != NULL)
- gdk_gl_context_set_window (context, gtk_widget_get_window (widget));
+ {
+ gdk_gl_context_set_window (context, window);
+ gdk_gl_context_update (context);
+ }
}
static void