gtk: Do not try to activate a NULL GLContext
At that point in the code nothing guarantees it exists
This commit is contained in:
parent
97dfc5f5a6
commit
7634a77611
@ -284,7 +284,8 @@ gtk_gst_gl_widget_render (GtkGLArea * widget, GdkGLContext * context)
|
|||||||
glClear (GL_COLOR_BUFFER_BIT);
|
glClear (GL_COLOR_BUFFER_BIT);
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_gl_context_activate (gst_widget->priv->other_context, FALSE);
|
if (gst_widget->priv->other_context)
|
||||||
|
gst_gl_context_activate (gst_widget->priv->other_context, FALSE);
|
||||||
|
|
||||||
g_mutex_unlock (&gst_widget->priv->lock);
|
g_mutex_unlock (&gst_widget->priv->lock);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user