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()