mirror of https://github.com/PCSX2/pcsx2.git
gsdx-ogl: fix fbmask regression
I forget to remove an useless 255.0f factor
This commit is contained in:
parent
a54e636364
commit
223b7daa1d
|
@ -395,7 +395,7 @@ void ps_fbmask(inout vec4 C)
|
||||||
// FIXME do I need special case for 16 bits
|
// FIXME do I need special case for 16 bits
|
||||||
#if PS_FBMASK
|
#if PS_FBMASK
|
||||||
vec4 RT = trunc(texelFetch(RtSampler, ivec2(gl_FragCoord.xy), 0) * 255.0f + 0.1f);
|
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
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1258,7 +1258,7 @@ static const char* tfx_fs_all_glsl =
|
||||||
" // FIXME do I need special case for 16 bits\n"
|
" // FIXME do I need special case for 16 bits\n"
|
||||||
"#if PS_FBMASK\n"
|
"#if PS_FBMASK\n"
|
||||||
" vec4 RT = trunc(texelFetch(RtSampler, ivec2(gl_FragCoord.xy), 0) * 255.0f + 0.1f);\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"
|
"#endif\n"
|
||||||
"}\n"
|
"}\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
Loading…
Reference in New Issue