mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-13 07:57:58 +00:00
- 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:
parent
9649fb9b75
commit
28a12d2597
1 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue