diff options
Diffstat (limited to 'components/script/dom/webglframebuffer.rs')
-rw-r--r-- | components/script/dom/webglframebuffer.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/webglframebuffer.rs b/components/script/dom/webglframebuffer.rs index 70cf84cdf11..be9579adee7 100644 --- a/components/script/dom/webglframebuffer.rs +++ b/components/script/dom/webglframebuffer.rs @@ -62,10 +62,10 @@ impl WebGLFramebufferAttachment { fn root(&self) -> WebGLFramebufferAttachmentRoot { match *self { WebGLFramebufferAttachment::Renderbuffer(ref rb) => { - WebGLFramebufferAttachmentRoot::Renderbuffer(DomRoot::from_ref(&rb)) + WebGLFramebufferAttachmentRoot::Renderbuffer(DomRoot::from_ref(rb)) }, WebGLFramebufferAttachment::Texture { ref texture, .. } => { - WebGLFramebufferAttachmentRoot::Texture(DomRoot::from_ref(&texture)) + WebGLFramebufferAttachmentRoot::Texture(DomRoot::from_ref(texture)) }, } } @@ -421,7 +421,7 @@ impl WebGLFramebuffer { let attachment = attachment.borrow(); let constraints = color_constraints.clone(); if let Err(errnum) = - self.check_attachment_constraints(&*attachment, constraints, &mut fb_size) + self.check_attachment_constraints(&attachment, constraints, &mut fb_size) { return self.status.set(errnum); } |