1
0
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:
Bin Jin 2015-12-04 10:59:33 +00:00 committed by wm4
parent 3b6c7275bc
commit 01c418f9df

View File

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