mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
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
This commit is contained in:
parent
06a1954165
commit
ae721c54c2
1 changed files with 0 additions and 4 deletions
|
@ -191,11 +191,7 @@ gst_gl_context_eagl_update_layer (GstGLContext * context)
|
||||||
height);
|
height);
|
||||||
glFramebufferRenderbuffer (GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT,
|
glFramebufferRenderbuffer (GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT,
|
||||||
GL_RENDERBUFFER, depth_renderbuffer);
|
GL_RENDERBUFFER, depth_renderbuffer);
|
||||||
[EAGLContext setCurrentContext:nil];
|
|
||||||
|
|
||||||
[EAGLContext setCurrentContext:priv->eagl_context];
|
|
||||||
|
|
||||||
glBindFramebuffer (GL_FRAMEBUFFER, framebuffer);
|
|
||||||
/* check creation status */
|
/* check creation status */
|
||||||
status = glCheckFramebufferStatus (GL_FRAMEBUFFER);
|
status = glCheckFramebufferStatus (GL_FRAMEBUFFER);
|
||||||
if (status != GL_FRAMEBUFFER_COMPLETE) {
|
if (status != GL_FRAMEBUFFER_COMPLETE) {
|
||||||
|
|
Loading…
Reference in a new issue