[485/906] gstgldisplay: turn off texture binding and read buffer when downloading rgb is done

It fixes: (black image before)
gst-launch-0.10 audiotestsrc ! libvisual_gl_lv_gltest ! gldownload ! ximagesink
and
gst-launch-0.10  audiotestsrc ! libvisual_gl_lv_gltest ! gldownload ! glimagesink
This commit is contained in:
Julien Isorce 2011-12-15 18:13:00 +01:00 committed by Matthew Waters
parent c298f99b5d
commit 06d73faac4

View file

@ -3311,6 +3311,12 @@ gst_gl_display_thread_do_download_draw_rgb (GstGLDisplay * display)
default:
g_assert_not_reached ();
}
#ifndef OPENGL_ES2
glDisable (GL_TEXTURE_RECTANGLE_ARB);
#else
glReadBuffer (GL_NONE);
#endif
}