From a53754cc28b45fbf96c00bf46ed38ebb93188518 Mon Sep 17 00:00:00 2001 From: Filippo Argiolas Date: Tue, 5 Aug 2008 10:15:07 +0200 Subject: [PATCH] [140/906] Fix GL_STACK_OVERFLOW --- gst-libs/gst/gl/gstgldisplay.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst-libs/gst/gl/gstgldisplay.c b/gst-libs/gst/gl/gstgldisplay.c index 1553312..1dfc3a2 100644 --- a/gst-libs/gst/gl/gstgldisplay.c +++ b/gst-libs/gst/gl/gstgldisplay.c @@ -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); -- 2.7.4