From e4d916a4b3d9d301cb3f8f306664f90c074476a6 Mon Sep 17 00:00:00 2001 From: Gargaj Date: Sun, 18 Oct 2015 19:05:04 +0200 Subject: [PATCH] NULL out font texture on invalidate If this isn't done, NewFrame won't re-create the font. --- examples/directx9_example/imgui_impl_dx9.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/directx9_example/imgui_impl_dx9.cpp b/examples/directx9_example/imgui_impl_dx9.cpp index 1e7c7900..fd1b03b5 100644 --- a/examples/directx9_example/imgui_impl_dx9.cpp +++ b/examples/directx9_example/imgui_impl_dx9.cpp @@ -285,6 +285,7 @@ void ImGui_ImplDX9_InvalidateDeviceObjects() tex->Release(); ImGui::GetIO().Fonts->TexID = 0; } + g_FontTexture = NULL; } void ImGui_ImplDX9_NewFrame()