fix crash on swap chain resize

This commit is contained in:
zznty
2024-11-03 02:54:07 +07:00
parent 4da9022e16
commit ebc05073d8
2 changed files with 10 additions and 1 deletions

View File

@@ -52,7 +52,7 @@ internal class ImGuiHandler : IDisposable
public void DoRender()
{
if (Rtv is null)
throw new InvalidOperationException("Rtv is null");
return;
ImGui_ImplDX11_NewFrame();
ImGui_ImplWin32_NewFrame();