From 6e32ade69e61f5240992a53c434ff2d211267813 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Fri, 25 Apr 2014 23:48:51 -0700 Subject: [PATCH] Clear alpha channel in fragment shader (fixes #51) --- src/platform/sdl/egl-main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/platform/sdl/egl-main.c b/src/platform/sdl/egl-main.c index cd511049b..a92d1f752 100644 --- a/src/platform/sdl/egl-main.c +++ b/src/platform/sdl/egl-main.c @@ -49,7 +49,9 @@ static const char* _fragmentShader = "uniform sampler2D tex;\n" "void main() {\n" - " gl_FragColor = texture2D(tex, texCoord);\n" + " vec4 color = texture2D(tex, texCoord);\n" + " color.a = 1.;\n" + " gl_FragColor = color;" "}"; static const GLfloat _vertices[] = {