aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglshader.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-03-05 16:48:01 +0100
committerSimon Sapin <simon.sapin@exyr.org>2018-03-12 14:23:20 +0100
commit67d983cb1256e76c42451460116bd98cb3f31db1 (patch)
tree7d2e30be53ede37d14388569aa1443dd0c6aceaa /components/script/dom/webglshader.rs
parent324e22db030ba73452dfc4ec455534fb144f585b (diff)
downloadservo-67d983cb1256e76c42451460116bd98cb3f31db1.tar.gz
servo-67d983cb1256e76c42451460116bd98cb3f31db1.zip
Switch from servo/angle to the mozangle crate
https://github.com/servo/mozangle
Diffstat (limited to 'components/script/dom/webglshader.rs')
-rw-r--r--components/script/dom/webglshader.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/webglshader.rs b/components/script/dom/webglshader.rs
index 7d69cb5d56c..2a6504be506 100644
--- a/components/script/dom/webglshader.rs
+++ b/components/script/dom/webglshader.rs
@@ -3,7 +3,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://www.khronos.org/registry/webgl/specs/latest/1.0/webgl.idl
-use angle::hl::{BuiltInResources, Output, ShaderValidator};
use canvas_traits::webgl::{WebGLSLVersion, WebGLVersion};
use canvas_traits::webgl::{webgl_channel, WebGLCommand, WebGLMsgSender, WebGLParameter, WebGLResult, WebGLShaderId};
use dom::bindings::cell::DomRefCell;
@@ -16,6 +15,7 @@ use dom::webgl_extensions::ext::oesstandardderivatives::OESStandardDerivatives;
use dom::webglobject::WebGLObject;
use dom::window::Window;
use dom_struct::dom_struct;
+use mozangle::shaders::{BuiltInResources, Output, ShaderValidator};
use std::cell::Cell;
use std::sync::{ONCE_INIT, Once};
@@ -47,7 +47,7 @@ impl WebGLShader {
id: WebGLShaderId,
shader_type: u32)
-> WebGLShader {
- GLSLANG_INITIALIZATION.call_once(|| ::angle::hl::initialize().unwrap());
+ GLSLANG_INITIALIZATION.call_once(|| ::mozangle::shaders::initialize().unwrap());
WebGLShader {
webgl_object: WebGLObject::new_inherited(),
id: id,