mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
crashfix: const U32 numVerts = curEntry.vertBuffer-> is invalid for vectorlights
This commit is contained in:
parent
45f45ca974
commit
33d82ea1f6
1 changed files with 2 additions and 0 deletions
|
|
@ -359,6 +359,8 @@ void AdvancedLightBinManager::render( SceneRenderState *state )
|
||||||
{
|
{
|
||||||
LightBinEntry& curEntry = *itr;
|
LightBinEntry& curEntry = *itr;
|
||||||
LightInfo *curLightInfo = curEntry.lightInfo;
|
LightInfo *curLightInfo = curEntry.lightInfo;
|
||||||
|
if (curEntry.lightInfo->getType() >= LightInfo::Vector)
|
||||||
|
continue;
|
||||||
LightMaterialInfo *curLightMat = curEntry.lightMaterial;
|
LightMaterialInfo *curLightMat = curEntry.lightMaterial;
|
||||||
const U32 numPrims = curEntry.numPrims;
|
const U32 numPrims = curEntry.numPrims;
|
||||||
const U32 numVerts = curEntry.vertBuffer->mNumVerts;
|
const U32 numVerts = curEntry.vertBuffer->mNumVerts;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue