From 2d63a74aeb67b97c4381a4574c738b3f1471be45 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Tue, 17 Jun 2014 23:10:38 -0700 Subject: [PATCH] Allow DrawPixels (uploads) to handle alpha. Doesn't update stencil, but at least it updates alpha. This was fixed to 1.0 before because we had blending enabled by accident during DrawPixels(). --- GPU/GLES/Framebuffer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/GPU/GLES/Framebuffer.cpp b/GPU/GLES/Framebuffer.cpp index 9add9d621a..22b29520ee 100644 --- a/GPU/GLES/Framebuffer.cpp +++ b/GPU/GLES/Framebuffer.cpp @@ -70,8 +70,7 @@ static const char tex_fs[] = "uniform sampler2D sampler0;\n" "varying vec2 v_texcoord0;\n" "void main() {\n" - " gl_FragColor.rgb = texture2D(sampler0, v_texcoord0).rgb;\n" - " gl_FragColor.a = 1.0;\n" + " gl_FragColor = texture2D(sampler0, v_texcoord0);\n" "}\n"; static const char basic_vs[] =