From ae721c54c27cd9424ff80fa76ead4fefef64502e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 9 Sep 2015 09:27:17 +0300 Subject: [PATCH] gl/eagl: Don't make context uncurrent just to make it current again in the next line Also binding the framebuffer again is unnecessary then as it was just bound a few lines before while the context was current. https://bugzilla.gnome.org/show_bug.cgi?id=754757 --- gst-libs/gst/gl/eagl/gstglcontext_eagl.m | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gst-libs/gst/gl/eagl/gstglcontext_eagl.m b/gst-libs/gst/gl/eagl/gstglcontext_eagl.m index dce81680cb..7adcf58908 100644 --- a/gst-libs/gst/gl/eagl/gstglcontext_eagl.m +++ b/gst-libs/gst/gl/eagl/gstglcontext_eagl.m @@ -191,11 +191,7 @@ gst_gl_context_eagl_update_layer (GstGLContext * context) height); glFramebufferRenderbuffer (GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, depth_renderbuffer); - [EAGLContext setCurrentContext:nil]; - [EAGLContext setCurrentContext:priv->eagl_context]; - - glBindFramebuffer (GL_FRAMEBUFFER, framebuffer); /* check creation status */ status = glCheckFramebufferStatus (GL_FRAMEBUFFER); if (status != GL_FRAMEBUFFER_COMPLETE) {