mirror of https://github.com/mpv-player/mpv
vo_gpu_next: clear renderer cache on options update
This ensures that options are applied to current frame, even in paused state.
This commit is contained in:
parent
ef6052c01e
commit
012d317a1e
|
@ -133,7 +133,6 @@ struct priv {
|
||||||
bool is_interpolated;
|
bool is_interpolated;
|
||||||
bool want_reset;
|
bool want_reset;
|
||||||
bool frame_pending;
|
bool frame_pending;
|
||||||
bool redraw;
|
|
||||||
|
|
||||||
pl_options pars;
|
pl_options pars;
|
||||||
struct m_config_cache *opts_cache;
|
struct m_config_cache *opts_cache;
|
||||||
|
@ -2312,6 +2311,9 @@ AV_NOWARN_DEPRECATED(
|
||||||
}
|
}
|
||||||
|
|
||||||
pars->params.hooks = p->hooks;
|
pars->params.hooks = p->hooks;
|
||||||
|
|
||||||
|
MP_DBG(p, "Render options updated, resetting render state.\n");
|
||||||
|
p->want_reset = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct vo_driver video_out_gpu_next = {
|
const struct vo_driver video_out_gpu_next = {
|
||||||
|
|
Loading…
Reference in New Issue