tonemapper: fixed a typo in bloom filter size computation

metadata
Wenzel Jakob 2013-10-28 11:27:35 +01:00
parent 76260c731d
commit 5ea0546e41
1 changed files with 2 additions and 2 deletions

View File

@ -304,7 +304,7 @@ public:
if (bloomFov != 0) {
int maxDim = std::max(input->getWidth(), input->getHeight());
if (maxDim % 1 == 0)
if (maxDim % 2 == 0)
++maxDim;
ref<Bitmap> bloomFilter = computeBloomFilter(maxDim, bloomFov);
@ -363,7 +363,7 @@ public:
if (bloomFov != 0) {
int maxDim = std::max(input->getWidth(), input->getHeight());
if (maxDim % 1 == 0)
if (maxDim % 2 == 0)
++maxDim;
if (bloomFilter == NULL || bloomFilter->getWidth() != maxDim)