Commit 8ceaedf8 by Geoff Lang Committed by Commit Bot

Generate an INVALID_OPERATION error if a texture format is not supported.

We already generate an INVALID_VALUE in the ValidES3InternalFormat check above. If an error is generated here, it is because the internal format and type are not valid. TEST: conformance2/textures/misc/tex-image-with-bad-args BUG=angleproject:1958 BUG=angleproject:1715 Change-Id: I50d479e64d687cc971c8f41b5691dcb123da0391 Reviewed-on: https://chromium-review.googlesource.com/499690Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent 65ac5b9c
...@@ -78,7 +78,7 @@ static bool ValidateTexImageFormatCombination(gl::Context *context, ...@@ -78,7 +78,7 @@ static bool ValidateTexImageFormatCombination(gl::Context *context,
const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(internalFormat, type); const gl::InternalFormat &formatInfo = gl::GetInternalFormatInfo(internalFormat, type);
if (!formatInfo.textureSupport(context->getClientVersion(), context->getExtensions())) if (!formatInfo.textureSupport(context->getClientVersion(), context->getExtensions()))
{ {
context->handleError(Error(GL_INVALID_VALUE, "Unsupported internal format.")); context->handleError(Error(GL_INVALID_OPERATION, "Unsupported internal format."));
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