mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 12:02:23 +02:00
vo_gpu_next: fix blur and taper values being zero
This would always apply the config blur and taper values to the kernel, even if it was zero because the user didn't specify any.
This commit is contained in:
parent
ed5c744aa9
commit
5efc04006b
@ -1801,8 +1801,10 @@ static const struct pl_filter_config *map_scaler(struct priv *p,
|
|||||||
}
|
}
|
||||||
|
|
||||||
par->config.clamp = cfg->clamp;
|
par->config.clamp = cfg->clamp;
|
||||||
par->config.blur = cfg->kernel.blur;
|
if (cfg->kernel.blur > 0.0)
|
||||||
par->config.taper = cfg->kernel.taper;
|
par->config.blur = cfg->kernel.blur;
|
||||||
|
if (cfg->kernel.taper > 0.0)
|
||||||
|
par->config.taper = cfg->kernel.taper;
|
||||||
if (cfg->radius > 0.0) {
|
if (cfg->radius > 0.0) {
|
||||||
if (par->config.kernel->resizable) {
|
if (par->config.kernel->resizable) {
|
||||||
#if PL_API_VER >= 303
|
#if PL_API_VER >= 303
|
||||||
|
Loading…
Reference in New Issue
Block a user