소스 검색

Merge remote-tracking branch 'origin' into 2015-07-cleanup

ocornut 10 년 전
부모
커밋
8be4d41540
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      examples/directx11_example/imgui_impl_dx11.cpp

+ 1 - 1
examples/directx11_example/imgui_impl_dx11.cpp

@@ -402,7 +402,7 @@ void    ImGui_ImplDX11_InvalidateDeviceObjects()
         return;
         return;
 
 
     if (g_pFontSampler) { g_pFontSampler->Release(); g_pFontSampler = NULL; }
     if (g_pFontSampler) { g_pFontSampler->Release(); g_pFontSampler = NULL; }
-    if (g_pFontTextureView) { g_pFontTextureView->Release(); ImGui::GetIO().Fonts->TexID = 0; }
+    if (g_pFontTextureView) { g_pFontTextureView->Release(); g_pFontTextureView = NULL; ImGui::GetIO().Fonts->TexID = 0; }
     if (g_pIB) { g_pIB->Release(); g_pIB = NULL; }
     if (g_pIB) { g_pIB->Release(); g_pIB = NULL; }
     if (g_pVB) { g_pVB->Release(); g_pVB = NULL; }
     if (g_pVB) { g_pVB->Release(); g_pVB = NULL; }