mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-24 00:00:13 +00:00
Fix shutdown order for terrain streaming threads
This commit is contained in:
parent
1c718dce22
commit
dede5a99d4
1 changed files with 5 additions and 1 deletions
|
|
@ -207,12 +207,16 @@ void Application::run() {
|
|||
void Application::shutdown() {
|
||||
LOG_INFO("Shutting down application");
|
||||
|
||||
// Stop renderer first: terrain streaming workers may still be reading via
|
||||
// AssetManager during shutdown, so renderer/terrain teardown must complete
|
||||
// before AssetManager is destroyed.
|
||||
renderer.reset();
|
||||
|
||||
world.reset();
|
||||
gameHandler.reset();
|
||||
authHandler.reset();
|
||||
assetManager.reset();
|
||||
uiManager.reset();
|
||||
renderer.reset();
|
||||
window.reset();
|
||||
|
||||
running = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue