Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GLUT: remove automatic ImGui::NewFrame() #6337

Closed
wants to merge 1 commit into from

Conversation

GereonV
Copy link
Contributor

@GereonV GereonV commented Apr 15, 2023

Unlike all other backends' ImGui_Impl_*_NewFrame() functions, ImGui_Impl_GLUT_NewFrame() called ImGui::NewFrame(). This PR aims to make the GLUT backend consistent with the common interface. This is a breaking change, but possible assertion errors are easily fixable.

Maybe this behavior is intended, I was unable to find any related issues or pull requests though.

Unlike all other backends' `ImGui_Impl_*_NewFrame()` functions,
`ImGui_Impl_GLUT_NewFrame()` called `ImGui::NewFrame()`. This commit
aims to make the GLUT backend consistent with the common interface. This
is a breaking change, but possible assertion errors are easily fixable.
@ocornut
Copy link
Owner

ocornut commented Apr 17, 2023

Thank you, this was indeed a mistake.
I have reworked your commit as f304603 : includes changelog in the backend file + modified the example app accordingly.
Merged!

@ocornut ocornut closed this Apr 17, 2023
@GereonV GereonV deleted the glut_newframe_inconsistency branch April 19, 2023 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants