mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-29 07:06:59 +08:00
filter_kernels: remove redundant corner case check
Actually, the original code would bypass some code path below.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user