summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/gpu/video_shaders.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/gpu/video_shaders.c b/video/out/gpu/video_shaders.c
index 3b6c9d01af..806f0e17dd 100644
--- a/video/out/gpu/video_shaders.c
+++ b/video/out/gpu/video_shaders.c
@@ -813,7 +813,8 @@ void pass_color_map(struct gl_shader_cache *sc, bool is_linear,
// Warn for remaining out-of-gamut colors is enabled
if (opts->gamut_warning) {
- GLSL(if (any(greaterThan(color.rgb, vec3(1.01)))))
+ GLSL(if (any(greaterThan(color.rgb, vec3(1.01))) ||
+ any(lessThan(color.rgb, vec3(0.0)))))
GLSL(color.rgb = vec3(1.0) - color.rgb;) // invert
}