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->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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue