- fixed update check for shadow map tree.

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.
This commit is contained in:
Christoph Oelckers 2020-10-17 15:01:05 +02:00
parent 9649fb9b75
commit 28a12d2597

View file

@ -36,8 +36,11 @@ public:
void SetAABBTree(hwrenderer::LevelAABBTree* tree)
{
mAABBTree = tree;
mNewTree = true;
if (mAABBTree != tree)
{
mAABBTree = tree;
mNewTree = true;
}
}
void SetCollectLights(std::function<void()> func)