vo_gpu_next: correctly clear removed hooks

Before d208284, this was implicitly reset back to 0 at the start of
every update_options(). But we no longer explicitly reset par->params,
so we need to do it manually here for the hooks.

Fixes: https://github.com/mpv-player/mpv/issues/12203
This commit is contained in:
Niklas Haas 2023-08-19 23:39:25 +02:00
parent 725b631ec3
commit 2791eb64e8
1 changed files with 1 additions and 0 deletions

View File

@ -2034,6 +2034,7 @@ static void update_render_options(struct vo *vo)
update_icc_opts(p, opts->icc_opts);
pars->params.num_hooks = 0;
const struct pl_hook *hook;
for (int i = 0; opts->user_shaders && opts->user_shaders[i]; i++) {
if ((hook = load_hook(p, opts->user_shaders[i]))) {