mirror of
https://github.com/nothings/stb
synced 2024-12-15 12:22:55 +03:00
Avoid gaps between box filter kernels.
This commit is contained in:
parent
9e726bb3e4
commit
8ac052ac8a
@ -197,7 +197,7 @@ typedef struct
|
||||
|
||||
float stbr__filter_nearest(float x)
|
||||
{
|
||||
if (fabs(x) < 0.5)
|
||||
if (fabs(x) <= 0.5)
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user