Commit 3003f048 by Yuly Novikov Committed by Commit Bot

Don't generate error for compressed texture formats in glFramebufferTexture2D

This validation error was added in 01868135 without explanation. Shouldn't be an error according to GLES 2.0.25 spec. Bug: 844846 Change-Id: Idc6d4d76304cbede7aa6d96bdccaefec40272b84 Reviewed-on: https://chromium-review.googlesource.com/1147149Reviewed-by: 's avatarAntoine Labour <piman@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Commit-Queue: Yuly Novikov <ynovikov@chromium.org>
parent db9c69ed
...@@ -6056,13 +6056,6 @@ bool ValidateFramebufferTexture2D(Context *context, ...@@ -6056,13 +6056,6 @@ bool ValidateFramebufferTexture2D(Context *context,
ANGLE_VALIDATION_ERR(context, InvalidEnum(), InvalidTextureTarget); ANGLE_VALIDATION_ERR(context, InvalidEnum(), InvalidTextureTarget);
return false; return false;
} }
const Format &format = tex->getFormat(textarget, level);
if (format.info->compressed)
{
context->handleError(InvalidOperation());
return false;
}
} }
return true; return true;
......
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