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:
Kacper Michajłow 2024-11-08 04:22:32 +01:00
parent ef6052c01e
commit 012d317a1e
1 changed files with 3 additions and 1 deletions

View File

@ -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 = {