Fixed compilation error
Former-commit-id: 1f0f0fd117c8a1ab2fc17c98d5065ab8bf4f4c00
This commit is contained in:
parent
86cd0ddbe1
commit
3e916c91f0
|
|
@ -303,7 +303,7 @@ void NzScene::Draw()
|
|||
std::sort(visibleLights.begin(), visibleLights.end(), lightComparator);
|
||||
|
||||
const unsigned int maxLightPerObject = 3; ///TODO: Config
|
||||
unsigned int max = std::min(std::min(maxLights - lightIndex, maxLightPerObject), visibleLights.size());
|
||||
unsigned int max = std::min(std::min(maxLights - lightIndex, maxLightPerObject), static_cast<unsigned int>(visibleLights.size()));
|
||||
for (unsigned int i = 0; i < max; ++i)
|
||||
visibleLights[i]->Apply(shader, lightIndex + i);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue