Explorar o código

Fix assert on exit when Basic Lighting is removed

Occurs because ShadowMapManager is destroyed before
AdvancedLightManager.
chaigler %!s(int64=7) %!d(string=hai) anos
pai
achega
4a72d54782
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      Engine/source/lighting/shadowMap/shadowMapManager.cpp

+ 3 - 0
Engine/source/lighting/shadowMap/shadowMapManager.cpp

@@ -41,6 +41,9 @@ GFX_ImplementTextureProfile(ShadowMapTexProfile,
 
 
 MODULE_BEGIN( ShadowMapManager )
+#ifndef TORQUE_BASIC_LIGHTING
+   MODULE_SHUTDOWN_AFTER(Scene)
+#endif
 
    MODULE_INIT
    {