gl/cocoa: Clear the current GL context when it should happen
authorSebastian Dröge <sebastian@centricular.com>
Thu, 25 Sep 2014 13:12:24 +0000 (16:12 +0300)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:46 +0000 (19:31 +0000)
gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m

index cd45857340a68d2ed6480898400da209b56be285..a4d1cd9149df07de43569b0114dbfaae63be7b76 100644 (file)
@@ -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;
 }