소스 검색

NULL out font texture on invalidate

If this isn't done, NewFrame won't re-create the font.
Gargaj 10 년 전
부모
커밋
e4d916a4b3
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      examples/directx9_example/imgui_impl_dx9.cpp

+ 1 - 0
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()