diff --git a/plugins/GSdx/res/glsl/tfx_fs.glsl b/plugins/GSdx/res/glsl/tfx_fs.glsl index b44e521a7c..2168f6a376 100644 --- a/plugins/GSdx/res/glsl/tfx_fs.glsl +++ b/plugins/GSdx/res/glsl/tfx_fs.glsl @@ -395,7 +395,7 @@ void ps_fbmask(inout vec4 C) // FIXME do I need special case for 16 bits #if PS_FBMASK vec4 RT = trunc(texelFetch(RtSampler, ivec2(gl_FragCoord.xy), 0) * 255.0f + 0.1f); - C = vec4((uvec4(C) & ~FbMask) | (uvec4(RT) & FbMask)) / 255.0f; + C = vec4((uvec4(C) & ~FbMask) | (uvec4(RT) & FbMask)); #endif } diff --git a/plugins/GSdx/res/glsl_source.h b/plugins/GSdx/res/glsl_source.h index 6abda2c6f9..8cc8ba7a03 100644 --- a/plugins/GSdx/res/glsl_source.h +++ b/plugins/GSdx/res/glsl_source.h @@ -1258,7 +1258,7 @@ static const char* tfx_fs_all_glsl = " // FIXME do I need special case for 16 bits\n" "#if PS_FBMASK\n" " vec4 RT = trunc(texelFetch(RtSampler, ivec2(gl_FragCoord.xy), 0) * 255.0f + 0.1f);\n" - " C = vec4((uvec4(C) & ~FbMask) | (uvec4(RT) & FbMask)) / 255.0f;\n" + " C = vec4((uvec4(C) & ~FbMask) | (uvec4(RT) & FbMask));\n" "#endif\n" "}\n" "\n"