Fixed crash
Former-commit-id: c4c873820026dfb348da515fa7bb0d4e6f97aba9
This commit is contained in:
parent
0fd535a9e8
commit
cbd7b1c36e
|
|
@ -289,6 +289,7 @@ void NzForwardRenderTechnique::DrawOpaqueModels(const NzScene* scene)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
unsigned int originalLightCount = lightCount;
|
||||||
for (const NzForwardRenderQueue::StaticData& data : staticData)
|
for (const NzForwardRenderQueue::StaticData& data : staticData)
|
||||||
{
|
{
|
||||||
// Calcul des lumières les plus proches
|
// Calcul des lumières les plus proches
|
||||||
|
|
@ -306,6 +307,8 @@ void NzForwardRenderTechnique::DrawOpaqueModels(const NzScene* scene)
|
||||||
|
|
||||||
NzRenderer::SetMatrix(nzMatrixType_World, data.transformMatrix);
|
NzRenderer::SetMatrix(nzMatrixType_World, data.transformMatrix);
|
||||||
DrawFunc(primitiveMode, 0, indexCount);
|
DrawFunc(primitiveMode, 0, indexCount);
|
||||||
|
|
||||||
|
lightCount = originalLightCount;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
staticData.clear();
|
staticData.clear();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue