mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 13:04:56 +00:00
Fix shutdown ordering issues
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user