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.
This commit is contained in:
Niklas Haas 2014-11-26 19:35:37 +01:00 committed by Alessandro Ghedini
parent 39126c3828
commit 3803c14279
1 changed files with 3 additions and 2 deletions

View File

@ -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