From 31fe006c8562e36f61e9dcec3206c9997db93d8e Mon Sep 17 00:00:00 2001 From: ocornut Date: Mon, 11 Jan 2016 10:29:03 +0000 Subject: [PATCH] Examples: DirectX10 fixed ImGui_ImplDX10_NewFrame() from recreating device objects if render isn't called (g_pVB not set) --- examples/directx10_example/imgui_impl_dx10.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/directx10_example/imgui_impl_dx10.cpp b/examples/directx10_example/imgui_impl_dx10.cpp index d4e81ed5..628bd41c 100644 --- a/examples/directx10_example/imgui_impl_dx10.cpp +++ b/examples/directx10_example/imgui_impl_dx10.cpp @@ -474,7 +474,7 @@ void ImGui_ImplDX10_Shutdown() void ImGui_ImplDX10_NewFrame() { - if (!g_pVB) + if (!g_pFontSampler) ImGui_ImplDX10_CreateDeviceObjects(); ImGuiIO& io = ImGui::GetIO();