glutin_window
glutin_window copied to clipboard
Suggestion: Don't use `gl::load_with`, use `get_proc_address` instead.
@tomaka suggested this in irc
wait, glutin_window calls gl::load_with? and piston uses the same "gl" static objects, hoping that it doesn't mismatch?
... ideally you'd expose
get_proc_addressand then call it in the code that actually manipulates openglplus, the global generator is unsafe on windows, but that's usually ignored by people
get_proc_address is exposed through the OpenGLWindow trait.
Ah, so it's good. It should be possible to remove this line then: https://github.com/PistonDevelopers/glutin_window/blob/master/src/lib.rs#L66
..and remove the dependency to gl-rs
Might needs some changes to opengl_graphics.