Merge Noel's fix to the 2.0 branch.

This commit is contained in:
castano
2008-05-19 18:30:08 +00:00
parent f7bbd4b4d7
commit e8bb3f2886
2 changed files with 2 additions and 1 deletions

View File

@ -376,7 +376,7 @@ FloatImage * FloatImage::fastDownSample() const
{
const uint n = w * h;
if (n & 1)
if ((m_width * m_height) & 1)
{
const float scale = 1.0f / (2 * n + 1);