imgui: Code cleanup, fix clean shutdown

This commit is contained in:
Henrik Rydgård committed 2024-11-05 11:27:16 +01:00
1 parent ae1756c8c0
commit 8dba3a50f7
9 files changed
+117 -121

No files matched your search

+1 -2
View File
@@ -830,9 +830,8 @@ bool NativeInitGraphics(GraphicsContext *graphicsContext) {
uiContext->Text()->SetFont("Tahoma", 20, 0);
g_screenManager->setUIContext(uiContext);
g_screenManager->setDrawContext(g_draw);
g_screenManager->setPostRenderCallback(&CallbackPostRender, nullptr);
g_screenManager->deviceRestored();
g_screenManager->deviceRestored(g_draw);
#ifdef _WIN32
winAudioBackend = CreateAudioBackend((AudioBackendType)g_Config.iAudioBackend);