From 683af1a9eaa6a41189557b8b63b8edfb2209f765 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Wed, 16 Feb 2022 00:24:43 -0800 Subject: [PATCH] Aurora: Fix crash on exit --- aurora/lib/aurora.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aurora/lib/aurora.cpp b/aurora/lib/aurora.cpp index 1732d214b..dcb62c0f7 100644 --- a/aurora/lib/aurora.cpp +++ b/aurora/lib/aurora.cpp @@ -169,6 +169,9 @@ void app_run(std::unique_ptr app, Icon icon) noexcept { while (poll_events()) {} + g_SwapChain.Release(); + g_Queue.Release(); + g_Device.Release(); SDL_DestroyWindow(g_Window); SDL_Quit(); }