1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 08:12:17 +00:00

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.
This commit is contained in:
Niklas Haas 2014-03-01 02:27:00 +01:00
parent bcceeec737
commit d5b5ed0b46

View File

@ -129,8 +129,9 @@ struct lut3d *mp_load_icc(struct mp_icc_opts *opts, struct mp_log *log,
if (!iccdata.len) if (!iccdata.len)
goto error_exit; goto error_exit;
char *cache_info = talloc_asprintf(tmp, "intent=%d, size=%dx%dx%d\n", char *cache_info =
opts->intent, s_r, s_g, s_b); talloc_asprintf(tmp, "intent=%d, size=%dx%dx%d, approx=%d\n",
opts->intent, s_r, s_g, s_b, opts->approx);
// check cache // check cache
if (opts->cache) { if (opts->cache) {