Relax the requirement for all color attachments to have the same number of…

Relax the requirement for all color attachments to have the same number of bitplanes for ES 3.0 contexts. TRAC #22704 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods Author: Jamie Madill git-svn-id: https://angleproject.googlecode.com/svn/branches/es3proto@2101 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 785f1965
......@@ -381,10 +381,14 @@ GLenum Framebuffer::completeness() const
return GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT;
}
// all color attachments attachments must have the same number of bitplanes
if (gl::ComputePixelSize(colorbuffer->getInternalFormat()) != colorbufferSize)
// in GLES 2.0, all color attachments attachments must have the same number of bitplanes
// in GLES 3.0, there is no such restriction
if (mRenderer->getCurrentClientVersion() < 3)
{
return GL_FRAMEBUFFER_UNSUPPORTED;
if (ComputePixelSize(colorbuffer->getInternalFormat()) != colorbufferSize)
{
return GL_FRAMEBUFFER_UNSUPPORTED;
}
}
// D3D11 does not allow for overlapping RenderTargetViews, so ensure uniqueness
......
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