mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 12:02:23 +02:00
vo_opengl: make operator precedence explicit
More readable.
This commit is contained in:
parent
cebb3ba645
commit
fc0ea3a541
@ -904,7 +904,8 @@ static void compile_shaders(struct gl_video *p)
|
|||||||
// Linear light scaling is only enabled when either color correction
|
// Linear light scaling is only enabled when either color correction
|
||||||
// option (3dlut or srgb) is enabled, otherwise scaling is done in the
|
// option (3dlut or srgb) is enabled, otherwise scaling is done in the
|
||||||
// source space. We also need to linearize for constant luminance systems.
|
// source space. We also need to linearize for constant luminance systems.
|
||||||
bool convert_to_linear_gamma = !p->is_linear_rgb && use_cms || use_const_luma;
|
bool convert_to_linear_gamma =
|
||||||
|
(!p->is_linear_rgb && use_cms) || use_const_luma;
|
||||||
|
|
||||||
// Figure out the right color spaces we need to convert, if any
|
// Figure out the right color spaces we need to convert, if any
|
||||||
enum mp_csp_prim prim_src = p->image_params.primaries, prim_dest;
|
enum mp_csp_prim prim_src = p->image_params.primaries, prim_dest;
|
||||||
|
Loading…
Reference in New Issue
Block a user