diff --git a/ChangeLog b/ChangeLog index 39a9b05..9a32702 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ NVIDIA Texture Tools version 2.0.3 * More accurate DXT3 compressor. Fixes issue 38. + * Fix error in fast downsample filter, reported by Noel Llopis. NVIDIA Texture Tools version 2.0.2 * Fix copy ctor error reported by Richard Sim. diff --git a/src/nvimage/FloatImage.cpp b/src/nvimage/FloatImage.cpp index 75d02a1..baa99dd 100644 --- a/src/nvimage/FloatImage.cpp +++ b/src/nvimage/FloatImage.cpp @@ -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);