Fix shutdown ordering issues

This commit is contained in:
Luke Street 2021-05-30 16:59:19 -04:00
parent 2894ddb768
commit 39f4c3e114
2 changed files with 8 additions and 0 deletions

View File

@ -307,6 +307,8 @@ public:
g_mainMP1->Shutdown(); g_mainMP1->Shutdown();
} }
g_mainMP1.reset(); g_mainMP1.reset();
m_renderTex.reset();
m_pipelineConv.reset();
if (m_window) { if (m_window) {
m_window->getCommandQueue()->stopRenderer(); m_window->getCommandQueue()->stopRenderer();
} }

View File

@ -143,6 +143,12 @@ void ImGuiEngine::Shutdown() {
for (auto& item : ShaderDataBindings) { for (auto& item : ShaderDataBindings) {
item.reset(); item.reset();
} }
for (auto& item : Textures) {
item.reset();
}
VertexBuffer.reset();
IndexBuffer.reset();
UniformBuffer.reset();
ShaderPipeline.reset(); ShaderPipeline.reset();
} }