diff --git a/examples/directx11_example/imgui_impl_dx11.cpp b/examples/directx11_example/imgui_impl_dx11.cpp index 74d49784c..184ec0362 100644 --- a/examples/directx11_example/imgui_impl_dx11.cpp +++ b/examples/directx11_example/imgui_impl_dx11.cpp @@ -472,7 +472,7 @@ void ImGui_ImplDX11_Shutdown() void ImGui_ImplDX11_NewFrame() { - if (!g_pVB) + if (!g_pFontSampler) ImGui_ImplDX11_CreateDeviceObjects(); ImGuiIO& io = ImGui::GetIO();