diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2015-09-09 09:27:17 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-09-09 10:10:46 +0300 |
commit | c97144b23b843a3fd9d2a2bc15b18d2dcbb968f6 (patch) | |
tree | 4d63cdc9fe13971d313f50d4a4527896ee8687f5 | |
parent | 6d1eda9391d3143b5fc633edfd94b89dbba209ab (diff) | |
download | gstreamer-plugins-bad-c97144b23b843a3fd9d2a2bc15b18d2dcbb968f6.tar.gz |
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
-rw-r--r-- | gst-libs/gst/gl/eagl/gstglcontext_eagl.m | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gst-libs/gst/gl/eagl/gstglcontext_eagl.m b/gst-libs/gst/gl/eagl/gstglcontext_eagl.m index dce81680c..7adcf5890 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) { |