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.
I noticed the following in
SetWindowSizein gltest.go.Have you tried calling
glfw.Disable(glfw.AutoPollEvents)during setup?By default, glfw implicitely calls
PollEventswhen you callSwapBuffers. By disablingAutoPollEvents, you get manual control over your calls toPollEvents.