mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
[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:
parent
96cce45c38
commit
0f54271129
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue