MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / ImGui_ImplDX11_Shutdown

Function ImGui_ImplDX11_Shutdown

KBotExt/imgui/imgui_impl_dx11.cpp:575–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573}
574
575void ImGui_ImplDX11_Shutdown()
576{
577 ImGui_ImplDX11_Data* bd = ImGui_ImplDX11_GetBackendData();
578 IM_ASSERT(bd != nullptr && "No renderer backend to shutdown, or already shutdown?");
579 ImGuiIO& io = ImGui::GetIO();
580
581 ImGui_ImplDX11_InvalidateDeviceObjects();
582 if (bd->pFactory) { bd->pFactory->Release(); }
583 if (bd->pd3dDevice) { bd->pd3dDevice->Release(); }
584 if (bd->pd3dDeviceContext) { bd->pd3dDeviceContext->Release(); }
585 io.BackendRendererName = nullptr;
586 io.BackendRendererUserData = nullptr;
587 io.BackendFlags &= ~ImGuiBackendFlags_RendererHasVtxOffset;
588 IM_DELETE(bd);
589}
590
591void ImGui_ImplDX11_NewFrame()
592{

Callers 1

wWinMainFunction · 0.85

Calls 3

IM_DELETEFunction · 0.85

Tested by

no test coverage detected