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;
}