all repos — mgba @ 6e32ade69e61f5240992a53c434ff2d211267813

mGBA Game Boy Advance Emulator

Clear alpha channel in fragment shader (fixes #51)
Jeffrey Pfau jeffrey@endrift.com
Fri, 25 Apr 2014 23:48:51 -0700
commit

6e32ade69e61f5240992a53c434ff2d211267813

parent

084f0f037ef4eebb64a91a37f87fdfc1e82f2b57

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M src/platform/sdl/egl-main.csrc/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[] = {