Merge pull request #4131 from DanyalZia/patch-20

Fix AMD crash issue in inversecolors.fsh
This commit is contained in:
Henrik Rydgård 2013-10-12 02:31:39 -07:00
commit 9fe34bbd36

View File

@ -14,6 +14,6 @@ void main() {
vec3 gray = vec3(luma, luma, luma) - 0.5;
rgb -= vec3(0.5, 0.5, 0.5);
gl_FragColor.rgb = saturate(mix(rgb, gray, 2.0) + 0.5);
gl_FragColor.rgb = mix(rgb, gray, 2.0) + 0.5;
gl_FragColor.a = 1.0;
}