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) {