diff --git a/components/canvas/webgl_thread.rs b/components/canvas/webgl_thread.rs
index 3bfe49125ba..5fb1fad4eba 100644
--- a/components/canvas/webgl_thread.rs
+++ b/components/canvas/webgl_thread.rs
@@ -646,8 +646,9 @@ impl WebGLImpl {
ctx.gl().attach_shader(program_id.get(), shader_id.get()),
WebGLCommand::DetachShader(program_id, shader_id) =>
ctx.gl().detach_shader(program_id.get(), shader_id.get()),
- WebGLCommand::BindAttribLocation(program_id, index, ref name) =>
- ctx.gl().bind_attrib_location(program_id.get(), index, name),
+ WebGLCommand::BindAttribLocation(program_id, index, ref name) => {
+ ctx.gl().bind_attrib_location(program_id.get(), index, &to_name_in_compiled_shader(name))
+ }
WebGLCommand::BlendColor(r, g, b, a) =>
ctx.gl().blend_color(r, g, b, a),
WebGLCommand::BlendEquation(mode) =>
@@ -1100,11 +1101,13 @@ impl WebGLImpl {
chan.send(parameter).unwrap();
}
- fn uniform_location(gl: &gl::Gl,
- program_id: WebGLProgramId,
- name: &str,
- chan: &WebGLSender