diff options
author | wm4 <wm4@nowhere> | 2015-01-08 01:00:42 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-08 01:03:09 +0100 |
commit | d6aac7f9308b868d7a6d073814d6eec3cda0ed6c (patch) | |
tree | b2b6bfeae3cf977b4f1ee755b83ea4dda2e93646 /video/out/vo_opengl.c | |
parent | ae8a91d6b64f7ebdcce937a332830be19b5fc7e2 (diff) | |
download | mpv-d6aac7f9308b868d7a6d073814d6eec3cda0ed6c.tar.bz2 mpv-d6aac7f9308b868d7a6d073814d6eec3cda0ed6c.tar.xz |
vo_opengl: gl_lcms: implement change detection for memory profiles
This affects OSX, where memory profiles are updated e.g. on fullscreen
switches. The profile most likely doesn't change, but the LUT will
be generated and reloaded anyway.
Somewhat of a regression from commit f811348.
Fixes #1439.
Diffstat (limited to 'video/out/vo_opengl.c')
-rw-r--r-- | video/out/vo_opengl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/vo_opengl.c b/video/out/vo_opengl.c index 2ed3785154..d8269bdb01 100644 --- a/video/out/vo_opengl.c +++ b/video/out/vo_opengl.c @@ -244,6 +244,8 @@ static void call_request_hwdec_api(struct mp_hwdec_info *info, static bool update_icc_profile(struct gl_priv *p) { struct lut3d *lut3d = NULL; + if (!gl_lcms_has_changed(p->cms)) + return true; if (gl_lcms_get_lut3d(p->cms, &lut3d) && !lut3d) return false; gl_video_set_lut3d(p->renderer, lut3d); |