Small fix

This commit is contained in:
fed 2022-03-21 10:41:59 +01:00
parent ca72522988
commit 0938e5450d

View File

@ -313,8 +313,11 @@ namespace gui
void pre_destroy() override void pre_destroy() override
{ {
ImGui_ImplWin32_Shutdown(); if (initialized)
ImGui::DestroyContext(); {
ImGui_ImplWin32_Shutdown();
ImGui::DestroyContext();
}
} }
}; };
} }