Merge pull request #264 from Azaezel/alpha40_lightLoopiness

crashfix: `const U32 numVerts = curEntry.vertBuffer->` is invalid for vectorlights
This commit is contained in:
Brian Roberts 2020-07-30 11:49:24 -05:00 committed by GitHub
commit 7575d82d90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;