glutin_window icon indicating copy to clipboard operation
glutin_window copied to clipboard

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

Open mitchmindtree opened this issue 10 years ago • 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

mitchmindtree avatar May 25 '15 16:05 mitchmindtree

get_proc_address is exposed through the OpenGLWindow trait.

bvssvni avatar May 25 '15 16:05 bvssvni

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

tomaka avatar May 25 '15 16:05 tomaka

Might needs some changes to opengl_graphics.

bvssvni avatar May 25 '15 16:05 bvssvni