diff options
Diffstat (limited to 'components/servo/lib.rs')
-rw-r--r-- | components/servo/lib.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/components/servo/lib.rs b/components/servo/lib.rs index e2ce15fa39f..9ae3212d98c 100644 --- a/components/servo/lib.rs +++ b/components/servo/lib.rs @@ -412,7 +412,11 @@ where } else { let dispatcher = Box::new(MainThreadDispatcher::new(compositor_proxy.clone())) as Box<_>; - GLContextFactory::current_native_handle(dispatcher, window.gl().get_type()) + let gl_type = match window.gl().get_type() { + gl::GlType::Gl => sparkle::gl::GlType::Gl, + gl::GlType::Gles => sparkle::gl::GlType::Gles, + }; + GLContextFactory::current_native_handle(dispatcher, gl_type) }; let (external_image_handlers, external_images) = WebrenderExternalImageHandlers::new(); |