1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-11 00:04:24 +00:00

Examples: DirectX9/10/11: Comments

This commit is contained in:
omar 2017-06-02 11:28:48 +02:00
parent 2acbd1ac2d
commit 99ff2ec6fb
3 changed files with 4 additions and 3 deletions

View file

@ -313,10 +313,11 @@ void ImGui_ImplDX9_InvalidateDeviceObjects()
}
// At this point note that we set ImGui::GetIO().Fonts->TexID to be == g_FontTexture, so clear both.
ImGuiIO& io = ImGui::GetIO();
IM_ASSERT(g_FontTexture == io.Fonts->TexID);
if (g_FontTexture)
g_FontTexture->Release();
g_FontTexture = NULL;
ImGuiIO& io = ImGui::GetIO();
io.Fonts->TexID = NULL;
}