proper cleanup procedure for main

This commit is contained in:
Green Sky 2024-03-13 13:42:00 +01:00
parent d5dede5a61
commit 83bbac2cd1
No known key found for this signature in database

View File

@ -208,10 +208,17 @@ int main(int argc, char** argv) {
#endif
}
// TODO: use scope for the unique ptrs
screen.reset();
ImGui_ImplSDLRenderer3_Shutdown();
ImGui_ImplSDL3_Shutdown();
ImGui::DestroyContext();
renderer.reset();
window.reset();
SDL_Quit();
return 0;