Examples, Platform: Removed the call to ImGui::NewFrame() from the platform _NewFrame() function e.g. ImGui_ImplWin32_NewFrame(), ImGui_ImplSDL2_NewFrame(), ImGui_ImplGlfw_NewFrame(), etc. Moved to main.cpp for consistency. (#1542)

This commit is contained in:
omar
2018-06-07 22:10:31 +02:00
parent 77d51ebf24
commit 8c374512fd
18 changed files with 55 additions and 22 deletions

View File

@ -326,9 +326,6 @@ void ImGui_ImplGlfw_NewFrame()
else
io.BackendFlags &= ~ImGuiBackendFlags_HasGamepad;
}
// Start the frame. This call will update the io.WantCaptureMouse, io.WantCaptureKeyboard flag that you can use to dispatch inputs (or not) to your application.
ImGui::NewFrame();
}
//--------------------------------------------------------------------------------------------------------