Skip to content

Is it possible to make the opengl context current on other threads? #1456

Open
@saverioscagnoli

Description

@saverioscagnoli

I would like to process vertex data on a secondary thread, but every gl call fails unless the context is current on that thread. Since the video::Window has Rc<WindowContext>, it cannot be sent to another thread. How can i make the context current on another thread without the window?

Another thing (less important): is it possible to achieve something like glfw's render context (process sdl events on the main thread // calling opengl from another)

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