aboutsummaryrefslogtreecommitdiffstats
path: root/components/servo/lib.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2019-09-10 14:37:51 -0400
committerJosh Matthews <josh@joshmatthews.net>2019-09-11 11:40:04 -0400
commit1cefae71817924e375626802c5e639fe80f66c66 (patch)
tree2e9d3c47fd724204501560f61f9b4a25eb6cefa4 /components/servo/lib.rs
parentec1da1d01c0f48544084d9cba4398b592c58e1fe (diff)
downloadservo-1cefae71817924e375626802c5e639fe80f66c66.tar.gz
servo-1cefae71817924e375626802c5e639fe80f66c66.zip
Replace use of gleam in webgl with sparkle.
Diffstat (limited to 'components/servo/lib.rs')
-rw-r--r--components/servo/lib.rs6
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();