Remove all uses of "actual" formats.
BUG=angle:861
Change-Id: I7cd2d1a56772fdf18bcf926456399322d13e7a4f
Reviewed-on: https://chromium-review.googlesource.com/236305
Reviewed-by: Brandon Jones <bajones@chromium.org>
Tested-by: Geoff Lang <geofflang@chromium.org>
diff --git a/src/libANGLE/Renderbuffer.cpp b/src/libANGLE/Renderbuffer.cpp
index ee6acc1..00d4768 100644
--- a/src/libANGLE/Renderbuffer.cpp
+++ b/src/libANGLE/Renderbuffer.cpp
@@ -25,7 +25,6 @@
mWidth(0),
mHeight(0),
mInternalFormat(GL_RGBA4),
- mActualFormat(GL_RGBA4),
mSamples(0)
{
ASSERT(mRenderbuffer);
@@ -48,7 +47,6 @@
mHeight = height;
mInternalFormat = internalformat;
mSamples = samples;
- mActualFormat = mRenderbuffer->getActualFormat();
return Error(GL_NO_ERROR);
}
@@ -74,11 +72,6 @@
return mInternalFormat;
}
-GLenum Renderbuffer::getActualFormat() const
-{
- return mActualFormat;
-}
-
GLsizei Renderbuffer::getSamples() const
{
return mSamples;
@@ -86,32 +79,32 @@
GLuint Renderbuffer::getRedSize() const
{
- return GetInternalFormatInfo(getActualFormat()).redBits;
+ return GetInternalFormatInfo(mInternalFormat).redBits;
}
GLuint Renderbuffer::getGreenSize() const
{
- return GetInternalFormatInfo(getActualFormat()).greenBits;
+ return GetInternalFormatInfo(mInternalFormat).greenBits;
}
GLuint Renderbuffer::getBlueSize() const
{
- return GetInternalFormatInfo(getActualFormat()).blueBits;
+ return GetInternalFormatInfo(mInternalFormat).blueBits;
}
GLuint Renderbuffer::getAlphaSize() const
{
- return GetInternalFormatInfo(getActualFormat()).alphaBits;
+ return GetInternalFormatInfo(mInternalFormat).alphaBits;
}
GLuint Renderbuffer::getDepthSize() const
{
- return GetInternalFormatInfo(getActualFormat()).depthBits;
+ return GetInternalFormatInfo(mInternalFormat).depthBits;
}
GLuint Renderbuffer::getStencilSize() const
{
- return GetInternalFormatInfo(getActualFormat()).stencilBits;
+ return GetInternalFormatInfo(mInternalFormat).stencilBits;
}
}