crashfix: const U32 numVerts = curEntry.vertBuffer-> is invalid for vectorlights

This commit is contained in:
AzaezelX 2020-07-27 20:30:26 -05:00
parent 45f45ca974
commit 33d82ea1f6

View file

@ -359,6 +359,8 @@ void AdvancedLightBinManager::render( SceneRenderState *state )
{
LightBinEntry& curEntry = *itr;
LightInfo *curLightInfo = curEntry.lightInfo;
if (curEntry.lightInfo->getType() >= LightInfo::Vector)
continue;
LightMaterialInfo *curLightMat = curEntry.lightMaterial;
const U32 numPrims = curEntry.numPrims;
const U32 numVerts = curEntry.vertBuffer->mNumVerts;