mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
Merge pull request #264 from Azaezel/alpha40_lightLoopiness
crashfix: `const U32 numVerts = curEntry.vertBuffer->` is invalid for vectorlights
This commit is contained in:
commit
7575d82d90
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