diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2018-07-03 02:11:35 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2018-07-05 14:20:47 +0200 |
commit | 0814bd669980f4e5bf8c65bfcc38ac67f152eb93 (patch) | |
tree | 685c242b844dafcc87dc7644b554d922448889e6 /components/script/dom/webgl_extensions | |
parent | 0018e5e6ba21ea85157f44f68ed66a7127f314bd (diff) | |
download | servo-0814bd669980f4e5bf8c65bfcc38ac67f152eb93.tar.gz servo-0814bd669980f4e5bf8c65bfcc38ac67f152eb93.zip |
Rename VertexAttribs::set_from to VertexAttribs::clone_from
Diffstat (limited to 'components/script/dom/webgl_extensions')
-rw-r--r-- | components/script/dom/webgl_extensions/ext/oesvertexarrayobject.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/webgl_extensions/ext/oesvertexarrayobject.rs b/components/script/dom/webgl_extensions/ext/oesvertexarrayobject.rs index b9ccaffcab4..9ec3065af49 100644 --- a/components/script/dom/webgl_extensions/ext/oesvertexarrayobject.rs +++ b/components/script/dom/webgl_extensions/ext/oesvertexarrayobject.rs @@ -100,7 +100,7 @@ impl OESVertexArrayObjectMethods for OESVertexArrayObject { fn BindVertexArrayOES(&self, vao: Option<&WebGLVertexArrayObjectOES>) { if let Some(bound_vao) = self.bound_vao.get() { // Store buffers attached to attrib pointers - bound_vao.vertex_attribs().set_from(&self.ctx.vertex_attribs()); + bound_vao.vertex_attribs().clone_from(&self.ctx.vertex_attribs()); for attrib_data in &*bound_vao.vertex_attribs().borrow() { if let Some(buffer) = attrib_data.buffer() { buffer.add_vao_reference(bound_vao.id()); @@ -125,7 +125,7 @@ impl OESVertexArrayObjectMethods for OESVertexArrayObject { self.bound_vao.set(Some(&vao)); // Restore WebGLRenderingContext current bindings - self.ctx.vertex_attribs().set_from(&vao.vertex_attribs()); + self.ctx.vertex_attribs().clone_from(&vao.vertex_attribs()); let element_array = vao.bound_buffer_element_array(); self.ctx.set_bound_buffer_element_array(element_array.as_ref().map(|buffer| &**buffer)); } else { |