change opengl initialization GlThenGles
@@ -90,7 +90,10 @@ impl Engine {
glutin::ContextBuilder::new()
.with_vsync(vsync)
.with_gl_profile(glutin::GlProfile::Core)
- .with_gl(glutin::GlRequest::Specific(glutin::Api::OpenGl, (3, 3)))
+ .with_gl(glutin::GlRequest::GlThenGles {
+ opengl_version: (3, 3),
+ opengles_version: (3, 0),
+ })
.build_windowed(window_builder, events_loop)?;
let ctx = match unsafe { context_wrapper.make_current() } {
