diff --git a/Runtime/CMain.cpp b/Runtime/CMain.cpp index 48700214c..68cd1cab1 100644 --- a/Runtime/CMain.cpp +++ b/Runtime/CMain.cpp @@ -307,6 +307,8 @@ public: g_mainMP1->Shutdown(); } g_mainMP1.reset(); + m_renderTex.reset(); + m_pipelineConv.reset(); if (m_window) { m_window->getCommandQueue()->stopRenderer(); } diff --git a/imgui/ImGuiEngine.cpp b/imgui/ImGuiEngine.cpp index c3beff7cd..5ac9419fa 100644 --- a/imgui/ImGuiEngine.cpp +++ b/imgui/ImGuiEngine.cpp @@ -143,6 +143,12 @@ void ImGuiEngine::Shutdown() { for (auto& item : ShaderDataBindings) { item.reset(); } + for (auto& item : Textures) { + item.reset(); + } + VertexBuffer.reset(); + IndexBuffer.reset(); + UniformBuffer.reset(); ShaderPipeline.reset(); }