Skip to content

Commit

Permalink
#5893: Clear entities and lights while modules are still alive.
Browse files Browse the repository at this point in the history
This is most likely due to unclean removal of attached light entities when their host entities are removed from the scene, so this is a defensive step.
  • Loading branch information
codereader committed Feb 4, 2022
1 parent 12b9959 commit 9884ba4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions radiantcore/rendersystem/OpenGLRenderSystem.cpp
Expand Up @@ -578,6 +578,9 @@ void OpenGLRenderSystem::initialiseModule(const IApplicationContext& ctx)

void OpenGLRenderSystem::shutdownModule()
{
_entities.clear();
_lights.clear();

_textRenderers.clear();

_sharedContextCreated.disconnect();
Expand Down

0 comments on commit 9884ba4

Please sign in to comment.