Skip to content

Regarding SetWindowSize #3

@ghost

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions