Patch Update - Fix Release

FIX :

~ Modifie l'ordre des shutdown
+ Ajout de Mutex pour éviter de release et de render la frame en même temp
- Suppression d'un shutdown oublié de ImGui dans systeme class
This commit is contained in:
2024-04-12 16:19:18 +02:00
parent 117d31d788
commit 42226741ce
7 changed files with 137 additions and 27 deletions

View File

@@ -201,7 +201,7 @@ void imguiManager::WidgetTerrainWindow(ApplicationClass* app)
ImGui::End();
}
void imguiManager::ImGuiWidgetRenderer(ApplicationClass* app)
bool imguiManager::ImGuiWidgetRenderer(ApplicationClass* app)
{
// Start the Dear ImGui frame
NewFrame();
@@ -255,6 +255,8 @@ void imguiManager::ImGuiWidgetRenderer(ApplicationClass* app)
Render();
app->GetDirect3D()->m_swapChain->Present(0, NULL);
return true;
}
void imguiManager::WidgetLightWindow(ApplicationClass* app)