-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
I noticed the following in SetWindowSize in gltest.go.
// Need to wait for the reshape event, otherwise it happens at an arbitrary
// point in the future (some unknown number of SwapBuffers())
//glfw.PollEvents() // Doesn't work
//glfw.WaitEvents() // might be racy (ideally, we'd need to send an event)
Have you tried calling glfw.Disable(glfw.AutoPollEvents) during setup?
By default, glfw implicitely calls PollEvents when you call SwapBuffers. By disabling AutoPollEvents, you get manual control over your calls to PollEvents.
Metadata
Metadata
Assignees
Labels
No labels