Skip to content

Commit

Permalink
- fixed update check for shadow map tree.
Browse files Browse the repository at this point in the history
This should only flag the tree as new if it is different from the last one.
This not only caused issues with dynamic updates but also made the renderer recreate the tree's data structures repeatedly.
  • Loading branch information
coelckers committed Oct 17, 2020
1 parent 9649fb9 commit 28a12d2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/common/rendering/hwrenderer/data/hw_shadowmap.h
Expand Up @@ -36,8 +36,11 @@ class IShadowMap

void SetAABBTree(hwrenderer::LevelAABBTree* tree)
{
mAABBTree = tree;
mNewTree = true;
if (mAABBTree != tree)
{
mAABBTree = tree;
mNewTree = true;
}
}

void SetCollectLights(std::function<void()> func)
Expand Down

0 comments on commit 28a12d2

Please sign in to comment.