mirror of https://github.com/AxioDL/metaforce.git
Fix shutdown ordering issues
This commit is contained in:
parent
2894ddb768
commit
39f4c3e114
|
@ -307,6 +307,8 @@ public:
|
|||
g_mainMP1->Shutdown();
|
||||
}
|
||||
g_mainMP1.reset();
|
||||
m_renderTex.reset();
|
||||
m_pipelineConv.reset();
|
||||
if (m_window) {
|
||||
m_window->getCommandQueue()->stopRenderer();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue