Examples: DirectX11: fixed ImGui_ImplDX11_NewFrame() from recreating device objects if render isn't called (g_pVB not set)

features/sdl_renderer3_multiviewports
ocornut ago%!(EXTRA string=10 years)
parent 85725ff9c6
commit 6277ffe00f
  1. 2
      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();

Loading…
Cancel
Save