Fixed crash
Former-commit-id: c4c873820026dfb348da515fa7bb0d4e6f97aba9
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user