Clear alpha channel in fragment shader (fixes #51)
Jeffrey Pfau jeffrey@endrift.com
Fri, 25 Apr 2014 23:48:51 -0700
1 files changed,
3 insertions(+),
1 deletions(-)
jump to
M
src/platform/sdl/egl-main.c
→
src/platform/sdl/egl-main.c
@@ -49,7 +49,9 @@ "varying vec2 texCoord;\n"
"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[] = {