[140/906] Fix GL_STACK_OVERFLOW

This commit is contained in:
Filippo Argiolas 2008-08-05 10:15:07 +02:00 committed by Matthew Waters
parent 47554d341c
commit a53754cc28

View file

@ -1454,10 +1454,10 @@ gst_gl_display_thread_use_fbo (GstGLDisplay *display)
glDisable(GL_TEXTURE_RECTANGLE_ARB);
glPopMatrix();
glMatrixMode(GL_PROJECTION);
glPopMatrix();
glMatrixMode(GL_MODELVIEW);
glPopMatrix();
glPopAttrib();
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
@ -2514,10 +2514,10 @@ gst_gl_display_thread_do_upload_draw (GstGLDisplay *display)
glDisable(GL_TEXTURE_RECTANGLE_ARB);
glPopMatrix();
glMatrixMode(GL_PROJECTION);
glPopMatrix();
glMatrixMode(GL_MODELVIEW);
glPopMatrix();
glPopAttrib();
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
@ -2669,10 +2669,10 @@ gst_gl_display_thread_do_download_draw (GstGLDisplay *display)
glDisable(GL_TEXTURE_RECTANGLE_ARB);
glPopMatrix();
glMatrixMode(GL_PROJECTION);
glPopMatrix();
glMatrixMode(GL_MODELVIEW);
glPopMatrix();
glPopAttrib();
glBindFramebufferEXT (GL_FRAMEBUFFER_EXT, 0);