Corrected a bug on intel driver

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14604 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
samuncle 2013-12-01 23:46:12 +00:00
parent 9fdfb27a67
commit 0a1431aed5

View File

@ -20,8 +20,8 @@ void main()
float outBlack = 0.0;
col = (pow(((col * 255.0) - inBlack) / (inWhite - inBlack),
(1.0 / inGamma)) * (outWhite - outBlack) + outBlack) / 255.0;
col.rgb = (pow(((col.rgb * 255.0) - inBlack) / (inWhite - inBlack),
vec3(1.0 / inGamma)) * (outWhite - outBlack) + outBlack) / 255.0;
gl_FragColor = vec4(col.rgb, 1.0);
}