gsdx-ogl: fix fbmask regression

I forget to remove an useless 255.0f factor
This commit is contained in:
Gregory Hainaut 2015-07-19 23:55:27 +02:00
parent a54e636364
commit 223b7daa1d
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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"