PistonDevelopers/glutin_window

Suggestion: Don't use `gl::load_with`, use `get_proc_address` instead.

mitchmindtree opened this issue · 3 comments

@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_address and then call it in the code that actually manipulates opengl

plus, 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.