Commit f90353e8 by Jamie Madill

Fix typo "setDepthttachment".

BUG=angleproject:930 Change-Id: I7680bbc912c0d961143c38ad82d19746dc9b113d Reviewed-on: https://chromium-review.googlesource.com/256732Reviewed-by: 's avatarKenneth Russell <kbr@chromium.org> Tested-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 85a1804d
...@@ -578,7 +578,7 @@ void Framebuffer::setAttachment(GLenum attachment, FramebufferAttachment *attach ...@@ -578,7 +578,7 @@ void Framebuffer::setAttachment(GLenum attachment, FramebufferAttachment *attach
{ {
SafeDelete(mData.mDepthAttachment); SafeDelete(mData.mDepthAttachment);
mData.mDepthAttachment = attachmentObj; mData.mDepthAttachment = attachmentObj;
mImpl->setDepthttachment(attachmentObj); mImpl->setDepthAttachment(attachmentObj);
} }
else if (attachment == GL_STENCIL_ATTACHMENT || attachment == GL_STENCIL) else if (attachment == GL_STENCIL_ATTACHMENT || attachment == GL_STENCIL)
{ {
...@@ -595,7 +595,7 @@ void Framebuffer::setAttachment(GLenum attachment, FramebufferAttachment *attach ...@@ -595,7 +595,7 @@ void Framebuffer::setAttachment(GLenum attachment, FramebufferAttachment *attach
if (attachmentObj && attachmentObj->getDepthSize() > 0 && attachmentObj->getStencilSize() > 0) if (attachmentObj && attachmentObj->getDepthSize() > 0 && attachmentObj->getStencilSize() > 0)
{ {
mData.mDepthAttachment = attachmentObj; mData.mDepthAttachment = attachmentObj;
mImpl->setDepthttachment(attachmentObj); mImpl->setDepthAttachment(attachmentObj);
// Make a new attachment object to ensure we do not double-delete // Make a new attachment object to ensure we do not double-delete
// See angle issue 686 // See angle issue 686
......
...@@ -32,7 +32,7 @@ class FramebufferImpl ...@@ -32,7 +32,7 @@ class FramebufferImpl
virtual ~FramebufferImpl() { } virtual ~FramebufferImpl() { }
virtual void setColorAttachment(size_t index, const gl::FramebufferAttachment *attachment) = 0; virtual void setColorAttachment(size_t index, const gl::FramebufferAttachment *attachment) = 0;
virtual void setDepthttachment(const gl::FramebufferAttachment *attachment) = 0; virtual void setDepthAttachment(const gl::FramebufferAttachment *attachment) = 0;
virtual void setStencilAttachment(const gl::FramebufferAttachment *attachment) = 0; virtual void setStencilAttachment(const gl::FramebufferAttachment *attachment) = 0;
virtual void setDepthStencilAttachment(const gl::FramebufferAttachment *attachment) = 0; virtual void setDepthStencilAttachment(const gl::FramebufferAttachment *attachment) = 0;
......
...@@ -78,7 +78,7 @@ void FramebufferD3D::setColorAttachment(size_t, const gl::FramebufferAttachment ...@@ -78,7 +78,7 @@ void FramebufferD3D::setColorAttachment(size_t, const gl::FramebufferAttachment
mInvalidateColorAttachmentCache = true; mInvalidateColorAttachmentCache = true;
} }
void FramebufferD3D::setDepthttachment(const gl::FramebufferAttachment *) void FramebufferD3D::setDepthAttachment(const gl::FramebufferAttachment *)
{ {
} }
......
...@@ -55,7 +55,7 @@ class FramebufferD3D : public FramebufferImpl ...@@ -55,7 +55,7 @@ class FramebufferD3D : public FramebufferImpl
virtual ~FramebufferD3D(); virtual ~FramebufferD3D();
void setColorAttachment(size_t index, const gl::FramebufferAttachment *attachment) override; void setColorAttachment(size_t index, const gl::FramebufferAttachment *attachment) override;
void setDepthttachment(const gl::FramebufferAttachment *attachment) override; void setDepthAttachment(const gl::FramebufferAttachment *attachment) override;
void setStencilAttachment(const gl::FramebufferAttachment *attachment) override; void setStencilAttachment(const gl::FramebufferAttachment *attachment) override;
void setDepthStencilAttachment(const gl::FramebufferAttachment *attachment) override; void setDepthStencilAttachment(const gl::FramebufferAttachment *attachment) override;
......
...@@ -25,7 +25,7 @@ void FramebufferGL::setColorAttachment(size_t index, const gl::FramebufferAttach ...@@ -25,7 +25,7 @@ void FramebufferGL::setColorAttachment(size_t index, const gl::FramebufferAttach
//UNIMPLEMENTED(); //UNIMPLEMENTED();
} }
void FramebufferGL::setDepthttachment(const gl::FramebufferAttachment *attachment) void FramebufferGL::setDepthAttachment(const gl::FramebufferAttachment *attachment)
{ {
//UNIMPLEMENTED(); //UNIMPLEMENTED();
} }
......
...@@ -21,7 +21,7 @@ class FramebufferGL : public FramebufferImpl ...@@ -21,7 +21,7 @@ class FramebufferGL : public FramebufferImpl
~FramebufferGL() override; ~FramebufferGL() override;
void setColorAttachment(size_t index, const gl::FramebufferAttachment *attachment) override; void setColorAttachment(size_t index, const gl::FramebufferAttachment *attachment) override;
void setDepthttachment(const gl::FramebufferAttachment *attachment) override; void setDepthAttachment(const gl::FramebufferAttachment *attachment) override;
void setStencilAttachment(const gl::FramebufferAttachment *attachment) override; void setStencilAttachment(const gl::FramebufferAttachment *attachment) override;
void setDepthStencilAttachment(const gl::FramebufferAttachment *attachment) override; void setDepthStencilAttachment(const gl::FramebufferAttachment *attachment) override;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment