summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Haas <git@nand.wakku.to>2014-03-01 02:27:00 +0100
committerNiklas Haas <git@nand.wakku.to>2014-03-01 02:28:46 +0100
commitd5b5ed0b4667ac3a0fa563c6f99639ca20b2c17f (patch)
tree42f9074304e9f6286f87b96c34787dc8f677e029
parentbcceeec737844a4184c1256f6490acbd8a8d1611 (diff)
downloadmpv-d5b5ed0b4667ac3a0fa563c6f99639ca20b2c17f.tar.bz2
mpv-d5b5ed0b4667ac3a0fa563c6f99639ca20b2c17f.tar.xz
vo_opengl: Include :icc-approx-gamma option in the 3DLUT cache header
This makes sure the ICC cache is recomputed when the :icc-approx-gamma option is changed, since it affects the output quite a lot.
-rw-r--r--video/out/gl_lcms.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/video/out/gl_lcms.c b/video/out/gl_lcms.c
index 3d568ea280..8c30ce3719 100644
--- a/video/out/gl_lcms.c
+++ b/video/out/gl_lcms.c
@@ -129,8 +129,9 @@ struct lut3d *mp_load_icc(struct mp_icc_opts *opts, struct mp_log *log,
if (!iccdata.len)
goto error_exit;
- char *cache_info = talloc_asprintf(tmp, "intent=%d, size=%dx%dx%d\n",
- opts->intent, s_r, s_g, s_b);
+ char *cache_info =
+ talloc_asprintf(tmp, "intent=%d, size=%dx%dx%d, approx=%d\n",
+ opts->intent, s_r, s_g, s_b, opts->approx);
// check cache
if (opts->cache) {