Fix fast box downsampling filter.
This commit is contained in:
parent
a76e89d0d7
commit
743599eb1d
@ -374,7 +374,7 @@ FloatImage * FloatImage::fastDownSample() const
|
|||||||
// 1D box filter.
|
// 1D box filter.
|
||||||
if (m_width == 1 || m_height == 1)
|
if (m_width == 1 || m_height == 1)
|
||||||
{
|
{
|
||||||
const uint w = m_width * m_height;
|
w *= h;
|
||||||
|
|
||||||
if (w & 1)
|
if (w & 1)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user