mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +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
4629bf1bc5
commit
6a9d6de71f
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