[634/906] wayland egl: deactivate context before we destroy it

avoids a segfault with dri drivers
This commit is contained in:
Matthew Waters 2012-12-19 14:54:21 +11:00 committed by Tim-Philipp Müller
parent db236c510f
commit 68b4ddff12

View file

@ -453,6 +453,8 @@ failure:
static void
gst_gl_window_wayland_egl_destroy_context (GstGLWindowWaylandEGL * window_egl)
{
gst_gl_window_wayland_egl_activate (GST_GL_WINDOW (window_egl), FALSE);
destroy_surface (window_egl);
if (window_egl->egl_context)