diff --git a/plugins/GSdx/res/glsl_source.h b/plugins/GSdx/res/glsl_source.h index 83b07a29b..383829b55 100644 --- a/plugins/GSdx/res/glsl_source.h +++ b/plugins/GSdx/res/glsl_source.h @@ -857,8 +857,12 @@ static const char* tfx_glsl = "#endif\n" "\n" "// Same buffer but 2 colors for dual source blending\n" + "#if GL_ES\n" + "layout(location = 0) out vec4 SV_Target0;\n" + "#else\n" "layout(location = 0, index = 0) out vec4 SV_Target0;\n" "layout(location = 0, index = 1) out vec4 SV_Target1;\n" + "#endif\n" "\n" "#ifdef DISABLE_GL42\n" "uniform sampler2D TextureSampler;\n" @@ -1232,6 +1236,13 @@ static const char* tfx_glsl = "{\n" " vec4 c = ps_color();\n" "\n" + "#if GL_ES\n" + "\n" + " c.a *= 2.0;\n" + " SV_Target0 = c;\n" + "\n" + "#else\n" + "\n" " float alpha = c.a * 2.0;\n" "\n" " if(PS_AOUT != 0) // 16 bit output\n" @@ -1247,6 +1258,9 @@ static const char* tfx_glsl = "\n" " SV_Target0 = c;\n" " SV_Target1 = vec4(alpha, alpha, alpha, alpha);\n" + "\n" + "#endif\n" + "\n" "}\n" "#endif\n" ;