From bc52e416417b13b2e1318f8904c7443f0cdd089d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 25 Sep 2014 16:12:24 +0300 Subject: [PATCH] gl/cocoa: Clear the current GL context when it should happen --- gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m b/gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m index cd45857340..a4d1cd9149 100644 --- a/gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m +++ b/gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m @@ -328,11 +328,8 @@ gst_gl_context_cocoa_activate (GstGLContext * context, gboolean activate) if (activate) [context_cocoa->priv->gl_context makeCurrentContext]; -#if 0 else - /* FIXME */ - [context_cocoa->priv->gl_context clearCurrentContext]; -#endif + [NSOpenGLContext clearCurrentContext]; return TRUE; }