Commit 3656c210 authored by Alexander Larsson's avatar Alexander Larsson

GtkGLArea: Don't dispose gl context on unrealize

This was done to ensure the context is not current, but this is
pretty broken for shared contexts. We now just make it non-current.
parent 9930e6dc
......@@ -524,7 +524,8 @@ gtk_gl_area_unrealize (GtkWidget *widget)
/* Make sure to destroy if current */
g_object_run_dispose (G_OBJECT (priv->context));
if (priv->context == gdk_gl_context_get_current ())
gdk_gl_context_clear_current ();
g_object_unref (priv->context);
priv->context = NULL;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment