diff options
Diffstat (limited to 'NativeApp/src/Win32/WinMain.cpp')
| -rw-r--r-- | NativeApp/src/Win32/WinMain.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/NativeApp/src/Win32/WinMain.cpp b/NativeApp/src/Win32/WinMain.cpp index 3545c53..59a07b8 100644 --- a/NativeApp/src/Win32/WinMain.cpp +++ b/NativeApp/src/Win32/WinMain.cpp @@ -85,6 +85,10 @@ int WINAPI WinMain(HINSTANCE instance, HINSTANCE, LPSTR, int cmdShow) { g_pTheApp->Update(0, 0); g_pTheApp->Render(); + // Dear imgui windows that don't have initial size are not rendered in the first frame, + // see https://github.com/ocornut/imgui/issues/2949 + g_pTheApp->Update(0, 0); + g_pTheApp->Render(); g_pTheApp->Present(); auto ExitCode = g_pTheApp->GetExitCode(); g_pTheApp.reset(); |
