diff options
author | wm4 <wm4@nowhere> | 2014-11-26 20:03:20 +0100 |
---|---|---|
committer | Alessandro Ghedini <alessandro@ghedini.me> | 2014-12-01 21:07:06 +0100 |
commit | 39126c382868abb8006474a3ff78f14ea94578b2 (patch) | |
tree | deb038b63fc3fb7f3ec5bc6a74b3f50e08aa600f | |
parent | b9cfc3622c41de795c1f5e4cf2f931597ee7fb8f (diff) | |
download | mpv-39126c382868abb8006474a3ff78f14ea94578b2.tar.bz2 mpv-39126c382868abb8006474a3ff78f14ea94578b2.tar.xz |
vo_opengl: make operator precedence explicit
More readable.
-rw-r--r-- | video/out/gl_video.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c index f03db7e242..3e87f20ab5 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -904,7 +904,8 @@ static void compile_shaders(struct gl_video *p) // Linear light scaling is only enabled when either color correction // option (3dlut or srgb) is enabled, otherwise scaling is done in the // 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 enum mp_csp_prim prim_src = p->image_params.primaries, prim_dest; |