tonemapper: fixed a typo in bloom filter size computation
parent
76260c731d
commit
5ea0546e41
|
@ -304,7 +304,7 @@ public:
|
||||||
|
|
||||||
if (bloomFov != 0) {
|
if (bloomFov != 0) {
|
||||||
int maxDim = std::max(input->getWidth(), input->getHeight());
|
int maxDim = std::max(input->getWidth(), input->getHeight());
|
||||||
if (maxDim % 1 == 0)
|
if (maxDim % 2 == 0)
|
||||||
++maxDim;
|
++maxDim;
|
||||||
|
|
||||||
ref<Bitmap> bloomFilter = computeBloomFilter(maxDim, bloomFov);
|
ref<Bitmap> bloomFilter = computeBloomFilter(maxDim, bloomFov);
|
||||||
|
@ -363,7 +363,7 @@ public:
|
||||||
|
|
||||||
if (bloomFov != 0) {
|
if (bloomFov != 0) {
|
||||||
int maxDim = std::max(input->getWidth(), input->getHeight());
|
int maxDim = std::max(input->getWidth(), input->getHeight());
|
||||||
if (maxDim % 1 == 0)
|
if (maxDim % 2 == 0)
|
||||||
++maxDim;
|
++maxDim;
|
||||||
|
|
||||||
if (bloomFilter == NULL || bloomFilter->getWidth() != maxDim)
|
if (bloomFilter == NULL || bloomFilter->getWidth() != maxDim)
|
||||||
|
|
Loading…
Reference in New Issue