Suggestion: Don't use `gl::load_with`, use `get_proc_address` instead.
mitchmindtree opened this issue · 3 comments
mitchmindtree commented
@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 openglplus, the global generator is unsafe on windows, but that's usually ignored by people
bvssvni commented
get_proc_address
is exposed through the OpenGLWindow
trait.
tomaka commented
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
bvssvni commented
Might needs some changes to opengl_graphics.