Commit c0db9add by Luc Ferron Committed by Commit Bot

Fix dEQP renderbuffer unspecified attachment test.

Full test name: dEQP-GLES3.functional.state_query.fbo.framebuffer_unspecified_attachment_x_size_rbo Bug: angleproject:2321 Change-Id: I086aefe23a3141f58cc33149c9cd7bdc5eb98dba Reviewed-on: https://chromium-review.googlesource.com/891662 Commit-Queue: Luc Ferron <lucferron@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent f70e0237
......@@ -182,32 +182,32 @@ void FramebufferAttachment::attach(const Context *context,
GLuint FramebufferAttachment::getRedSize() const
{
return getFormat().info->redBits;
return getSize().empty() ? 0 : getFormat().info->redBits;
}
GLuint FramebufferAttachment::getGreenSize() const
{
return getFormat().info->greenBits;
return getSize().empty() ? 0 : getFormat().info->greenBits;
}
GLuint FramebufferAttachment::getBlueSize() const
{
return getFormat().info->blueBits;
return getSize().empty() ? 0 : getFormat().info->blueBits;
}
GLuint FramebufferAttachment::getAlphaSize() const
{
return getFormat().info->alphaBits;
return getSize().empty() ? 0 : getFormat().info->alphaBits;
}
GLuint FramebufferAttachment::getDepthSize() const
{
return getFormat().info->depthBits;
return getSize().empty() ? 0 : getFormat().info->depthBits;
}
GLuint FramebufferAttachment::getStencilSize() const
{
return getFormat().info->stencilBits;
return getSize().empty() ? 0 : getFormat().info->stencilBits;
}
GLenum FramebufferAttachment::getComponentType() const
......
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