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
a512a91598
commit
baad74b995
@ -284,6 +284,7 @@ gtk_gst_gl_widget_render (GtkGLArea * widget, GdkGLContext * context)
|
||||
glClear (GL_COLOR_BUFFER_BIT);
|
||||
}
|
||||
|
||||
if (gst_widget->priv->other_context)
|
||||
gst_gl_context_activate (gst_widget->priv->other_context, FALSE);
|
||||
|
||||
g_mutex_unlock (&gst_widget->priv->lock);
|
||||
|
Loading…
x
Reference in New Issue
Block a user