Fix minor downcasting warnings.

metadata
Edgar Velazquez-Armendariz 2014-02-16 01:09:08 -05:00
parent a166ea43c2
commit 7f8bc8c6d6
2 changed files with 2 additions and 2 deletions

View File

@ -345,7 +345,7 @@ public:
m_storage = new ImageBlock(Bitmap::ESpectrumAlphaWeight, m_cropSize);
} else {
m_storage = new ImageBlock(Bitmap::EMultiSpectrumAlphaWeight, m_cropSize,
NULL, SPECTRUM_SAMPLES * m_pixelFormats.size() + 2);
NULL, (int) (SPECTRUM_SAMPLES * m_pixelFormats.size() + 2));
}
}

View File

@ -82,7 +82,7 @@ public:
ref<BlockedRenderProcess> proc = new BlockedRenderProcess(job,
queue, scene->getBlockSize());
proc->setPixelFormat(Bitmap::EMultiSpectrumAlphaWeight, m_integrators.size() * SPECTRUM_SAMPLES + 2, false);
proc->setPixelFormat(Bitmap::EMultiSpectrumAlphaWeight, (int) (m_integrators.size() * SPECTRUM_SAMPLES + 2), false);
int integratorResID = sched->registerResource(this);
proc->bindResource("integrator", integratorResID);