mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
[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:
parent
f27aef15b7
commit
9f4d1de046
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue