Use GlRequest::GlThenGles rather than using Specific:
This would allow people to use opengles with glutin_window (Which I have done) without having to modify a local clone.
change this:
.with_gl(GlRequest::Specific(Api::OpenGl, (major as u8, minor as u8)))
To something more like this:
.with_gl(GlRequest::GlThenGles {
opengl_version: (major as u8, minor as u8),
opengles_version: (major as u8, minor as u8),
})
It doesn't matter if the user chooses opengl or opengles, because this would support both!
Use
GlRequest::GlThenGles
rather than usingSpecific
: This would allow people to use opengles withglutin_window
(Which I have done) without having to modify a local clone. change this:To something more like this:
It doesn't matter if the user chooses opengl or opengles, because this would support both!