Commit f8f18f05 by Jamie Madill

Make blit extension check for internal format mismatch.

The extension spec dictates a format mismatch generates invalid operation. Since we can't have the same internal format map to different actual/native formats, this check is more strict and we can replace the previous one. BUG=angle:769 Change-Id: Ic1b5c335ba38a4f2feaffa1478a65e7fcf7f75ea Reviewed-on: https://chromium-review.googlesource.com/221065Reviewed-by: 's avatarShannon Woods <shannonwoods@chromium.org> Tested-by: 's avatarJamie Madill <jmadill@chromium.org>
parent dcd8f13d
...@@ -588,7 +588,8 @@ bool ValidateBlitFramebufferParameters(gl::Context *context, GLint srcX0, GLint ...@@ -588,7 +588,8 @@ bool ValidateBlitFramebufferParameters(gl::Context *context, GLint srcX0, GLint
return false; return false;
} }
if (attachment->getActualFormat() != readColorBuffer->getActualFormat()) // Return an error if the destination formats do not match
if (attachment->getInternalFormat() != readColorBuffer->getInternalFormat())
{ {
context->recordError(Error(GL_INVALID_OPERATION)); context->recordError(Error(GL_INVALID_OPERATION));
return false; return false;
......
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