-
Notifications
You must be signed in to change notification settings - Fork 8
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
Regarding SetWindowSize #3
Comments
I don't think that will help. The problem is that when you run |
If I understand you correctly, the purpose of that function is to force a resize and then pause execution of the test/example until the resize has actually propagated to the reshape function? |
Exactly. I don't know of a non-complicated, 100% reliable way to do that. I imagine waiting 10ms will get pretty damn close, though, without impacting execution time significantly. If you can think of other non-racy ways to do it I would love to know. |
I'll give it some thought. |
I noticed the following in
SetWindowSize
in gltest.go.Have you tried calling
glfw.Disable(glfw.AutoPollEvents)
during setup?By default, glfw implicitely calls
PollEvents
when you callSwapBuffers
. By disablingAutoPollEvents
, you get manual control over your calls toPollEvents
.The text was updated successfully, but these errors were encountered: