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));