tonemapper: fixed a typo in bloom filter size computation
parent
76260c731d
commit
5ea0546e41
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue