mirror of
https://github.com/mpv-player/mpv
synced 2025-01-11 17:39:38 +00:00
filter_kernels: remove redundant corner case check
Actually, the original code would bypass some code path below.
This commit is contained in:
parent
3b6c7275bc
commit
01c418f9df
@ -73,7 +73,6 @@ bool mp_init_filter(struct filter_kernel *filter, const int *sizes,
|
||||
filter->f.radius *= filter->inv_scale;
|
||||
// Polar filters are dependent solely on the radius
|
||||
if (filter->polar) {
|
||||
filter->f.radius = fmin(filter->f.radius, 16.0);
|
||||
filter->size = 1;
|
||||
// Safety precaution to avoid generating a gigantic shader
|
||||
if (filter->f.radius > 16.0) {
|
||||
|
Loading…
Reference in New Issue
Block a user