Fix minor downcasting warnings.
parent
a166ea43c2
commit
7f8bc8c6d6
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue