Browse Source

NULL out font texture on invalidate

If this isn't done, NewFrame won't re-create the font.
pull/378/head
Gargaj 9 years ago
parent
commit
e4d916a4b3
  1. 1
      examples/directx9_example/imgui_impl_dx9.cpp

1
examples/directx9_example/imgui_impl_dx9.cpp

@ -285,6 +285,7 @@ void ImGui_ImplDX9_InvalidateDeviceObjects()
tex->Release(); tex->Release();
ImGui::GetIO().Fonts->TexID = 0; ImGui::GetIO().Fonts->TexID = 0;
} }
g_FontTexture = NULL;
} }
void ImGui_ImplDX9_NewFrame() void ImGui_ImplDX9_NewFrame()

Loading…
Cancel
Save