[148/906] Fix rgb issue. Current program should always be set to 0 when a new texture is attached to a fbo.

This commit is contained in:
Filippo Argiolas 2008-08-11 17:17:22 +02:00 committed by Tim-Philipp Müller
parent 4629bf1bc5
commit 6a9d6de71f

View file

@ -2398,6 +2398,9 @@ gst_gl_display_thread_do_upload_draw (GstGLDisplay *display)
glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT,
GL_TEXTURE_RECTANGLE_ARB, display->upload_outtex, 0);
if (GLEW_ARB_fragment_shader)
gst_gl_shader_use (NULL);
glPushAttrib(GL_VIEWPORT_BIT);
glMatrixMode(GL_PROJECTION);