summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
Diffstat (limited to 'video')
-rw-r--r--video/out/gl_video_shaders.glsl1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/gl_video_shaders.glsl b/video/out/gl_video_shaders.glsl
index 53524e6cbb..47be240571 100644
--- a/video/out/gl_video_shaders.glsl
+++ b/video/out/gl_video_shaders.glsl
@@ -358,6 +358,7 @@ void main() {
#endif
#ifdef USE_COLORMATRIX
color = mat3(colormatrix) * color + colormatrix[3];
+ color = clamp(color, 0, 1);
#endif
#ifdef USE_CONV_GAMMA
color = pow(color, vec3(conv_gamma));