[vlc-commits] opengl: Set the color to full alpha in the non-shader draw path

Martin Storsjö git at videolan.org
Mon Mar 18 10:16:22 CET 2013


vlc | branch: master | Martin Storsjö <martin at martin.st> | Mon Mar 18 10:30:41 2013 +0200| [7ad605f9a403eac6908e41abdd81b63972761d22] | committer: Martin Storsjö

opengl: Set the color to full alpha in the non-shader draw path

The color is set when drawing subpictures, but wasn't set when
drawing the main texture.

For some reason, the current color was reset between each
display call in some environments, making this issue not to be
visible.

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7ad605f9a403eac6908e41abdd81b63972761d22
---

 modules/video_output/opengl.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/video_output/opengl.c b/modules/video_output/opengl.c
index 2dc1e9c..ea514e8 100644
--- a/modules/video_output/opengl.c
+++ b/modules/video_output/opengl.c
@@ -851,6 +851,7 @@ static void DrawWithoutShaders(vout_display_opengl_t *vgl,
         right[0], top[0]
     };
 
+    glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
     glEnable(vgl->tex_target);
     glActiveTexture(GL_TEXTURE0 + 0);
     glClientActiveTexture(GL_TEXTURE0 + 0);



More information about the vlc-commits mailing list