mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-25 05:31:00 +00:00
- fixed bad range check in shadowmap code.
Since the last refactoring this only counts lights, not occupied entries in the array, but the check wasn't adjusted for that.
This commit is contained in:
parent
8e46f235a6
commit
80b5a66635
2 changed files with 2 additions and 1 deletions
|
@ -366,6 +366,7 @@ void FLevelLocals::ClearLevelData()
|
|||
localEventManager->Shutdown();
|
||||
if (aabbTree) delete aabbTree;
|
||||
aabbTree = nullptr;
|
||||
screen->SetAABBTree(nullptr);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@ void CollectLights(FLevelLocals* Level)
|
|||
for (auto light = Level->lights; light; light = light->next)
|
||||
{
|
||||
IShadowMap::LightsProcessed++;
|
||||
if (light->shadowmapped && light->IsActive() && lightindex < 1024 * 4)
|
||||
if (light->shadowmapped && light->IsActive() && lightindex < 1024)
|
||||
{
|
||||
IShadowMap::LightsShadowmapped++;
|
||||
|
||||
|
|
Loading…
Reference in a new issue