diff options
author | Niklas Haas <git@nand.wakku.to> | 2014-11-26 19:35:37 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-11-26 20:31:59 +0100 |
commit | 7e62f2b0527e2a4d96418b9d8009dd840a45df0c (patch) | |
tree | e42cb5d6cf96ed4b7895ac5bc5c458a91bcbfed0 /video | |
parent | fc0ea3a54180ac977278be465406ab4e48a03071 (diff) | |
download | mpv-7e62f2b0527e2a4d96418b9d8009dd840a45df0c.tar.bz2 mpv-7e62f2b0527e2a4d96418b9d8009dd840a45df0c.tar.xz |
vo_opengl: Reword comment in shader
I didn't quite understand this comment after looking at the code again
months later, so I reworded it for better clarity.
Diffstat (limited to 'video')
-rw-r--r-- | video/out/gl_video_shaders.glsl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/video/out/gl_video_shaders.glsl b/video/out/gl_video_shaders.glsl index 11d2e94a61..bb6530295f 100644 --- a/video/out/gl_video_shaders.glsl +++ b/video/out/gl_video_shaders.glsl @@ -419,8 +419,9 @@ void main() { lessThanEqual(color.br, vec2(0))) + color.gg; #endif #ifdef USE_COLORMATRIX - // Clamp down here to avoid clipping CbCr details before CONST_LUMA - // has a chance to convert them. + // CONST_LUMA involves numbers outside the [0,1] range so we make sure + // to clip here, after the (possible) USE_CONST_LUMA calculations are done, + // instead of immediately after the colormatrix conversion. color = clamp(color, 0, 1); #endif // If we are scaling in linear light (SRGB or 3DLUT option enabled), we |