MCPcopy Create free account
hub / github.com/aliasIsolation/aliasIsolation / ShutdownMenu

Method ShutdownMenu

src/dll/menu.cpp:405–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405void Menu::ShutdownMenu()
406{
407 ImGui_ImplDX11_Shutdown();
408 ImGui_ImplWin32_Shutdown();
409 ImGui::DestroyContext();
410
411 Menu::CleanupRenderTarget();
412 if (g_pSwapChain)
413 {
414 g_pSwapChain->Release();
415 g_pSwapChain = nullptr;
416 }
417 if (g_pd3dDeviceContext)
418 {
419 g_pd3dDeviceContext->Release();
420 g_pd3dDeviceContext = nullptr;
421 }
422 if (g_pd3dDevice)
423 {
424 g_pd3dDevice->Release();
425 g_pd3dDevice = nullptr;
426 }
427
428 g_hWindow = nullptr;
429 g_originalWndProcHandler = nullptr;
430 g_menuInitialised = false;
431}
432
433static void SetupDeviceAndContext(IDXGISwapChain &swapChain)
434{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected