ADD: planet quadtree texture boilerplate

This commit is contained in:
2025-12-30 13:32:44 +09:00
parent 42645a31ea
commit 2bf97defcd
7 changed files with 440 additions and 13 deletions

View File

@@ -527,6 +527,12 @@ std::shared_ptr<LoadedGLTF> SceneManager::getScene(const std::string &name)
void SceneManager::cleanup()
{
if (_planetSystem)
{
_planetSystem->cleanup();
_planetSystem.reset();
}
// Explicitly clear dynamic instances first to drop any extra shared_ptrs
// that could keep GPU resources alive.
clearMeshInstances();