summaryrefslogtreecommitdiffstats
path: root/libvo/vo_opengl_shaders.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_opengl_shaders.glsl')
-rw-r--r--libvo/vo_opengl_shaders.glsl3
1 files changed, 3 insertions, 0 deletions
diff --git a/libvo/vo_opengl_shaders.glsl b/libvo/vo_opengl_shaders.glsl
index 5dd67bbd52..1f302889e4 100644
--- a/libvo/vo_opengl_shaders.glsl
+++ b/libvo/vo_opengl_shaders.glsl
@@ -37,11 +37,14 @@
# define in varying
#endif
+// Earlier GLSL doesn't support mix() with bvec
+#if __VERSION__ >= 130
vec3 srgb_compand(vec3 v)
{
return mix(1.055 * pow(v, vec3(1.0/2.4)) - vec3(0.055), v * 12.92,
lessThanEqual(v, vec3(0.0031308)));
}
+#endif
#!section vertex_all