X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=tests%2Fglsl%2Ffunction_overloading.glsl;h=6924a6286b64745b6e940f9440461acc91412445;hp=e5561705fca8265eb4b205008984a50fbe972032;hb=22d5405729048ee2677a1e45e309e6328de64a26;hpb=6142f469eb17c06a432fde663c36a0567985d986 diff --git a/tests/glsl/function_overloading.glsl b/tests/glsl/function_overloading.glsl index e5561705..6924a628 100644 --- a/tests/glsl/function_overloading.glsl +++ b/tests/glsl/function_overloading.glsl @@ -48,7 +48,7 @@ in vec2 _vs_out_texcoord; void main() { vec4 color = texture(tex, _vs_out_texcoord); - vec3 _srgb_to_linear_color = color.rgb; - frag_color = vec4(mix(_srgb_to_linear_color/12.92, pow((_srgb_to_linear_color+0.055)/1.055, vec3(2.4)), lessThan(_srgb_to_linear_color, vec3(0.04045))), color.a); + vec3 color_1 = color.rgb; + frag_color = vec4(mix(color_1/12.92, pow((color_1+0.055)/1.055, vec3(2.4)), lessThan(color_1, vec3(0.04045))), color.a); } */