fix(renderer): don't destroy if we aren't initialized

This commit is contained in:
maybegreat48
2025-06-18 22:04:18 -04:00
parent c1c98d851e
commit 9e2567a11d
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -23,6 +23,9 @@ namespace YimMenu
void Renderer::DestroyImpl()
{
if (!m_Initialized)
return;
// TODO: we aren't destroying resources properly
ImGui_ImplWin32_Shutdown();
@@ -206,6 +209,7 @@ namespace YimMenu
ImGui::StyleColorsDark();
LOG(INFO) << "DirectX 12 renderer has finished initializing.";
m_Initialized = true;
return true;
}
+1
View File
@@ -181,6 +181,7 @@ namespace YimMenu
ExampleDescriptorHeapAllocator m_HeapAllocator;
private:
bool m_Initialized;
bool m_Resizing;
// Shared