Add second init and close stage for GraphicsApp
This commit is contained in:
@@ -97,6 +97,7 @@ namespace OpenVulkano
|
||||
//TODO restore window settings if there are any set
|
||||
renderer->Init(static_cast<IGraphicsAppManager*>(this), window);
|
||||
windowTitleFormat = app->GetAppName() + " " + static_cast<std::string>(app->GetAppVersion()) + " - " + renderer->GetMainRenderDeviceName() + " - {:.1f} fps ({:.1f} ms)";
|
||||
app->InitPostGraphics();
|
||||
Logger::MANAGER->info("Initialized");
|
||||
}
|
||||
catch (std::exception& e)
|
||||
@@ -144,6 +145,7 @@ namespace OpenVulkano
|
||||
window->Close();
|
||||
if (platform) platform->Close();
|
||||
windowTitleFormat = "";
|
||||
app->CloseFinalize();
|
||||
Logger::MANAGER->info("Shutdown complete");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user