Skip to content

Restrict display creation unless it's destroyed #1628

@baehny

Description

@baehny

Creating a new display with Display::new(...) using WGL, changes the current OpenGL context, or to be more precise unsets the current context. This is caused by the construction and destruction of a temporary context in glutin::wgl::load_extra_functions.

Call of load_extra_functions in Display::new

wglMakeCurrent(..) in load_extra_functions(...)

I'm not sure if there is a good way to restore the original context, but I think this behaviour should atleast be described in the documentation of glutin::wgl::load_extra_functions and Display::new.

I hope I have some spare time to provide a suggestion in the next days.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions