Commit bb1b19b6 by Geoff Lang Committed by Commit Bot

Generate INVALID_OPERATION when the copy texture destination level is missing.

TEST=conformance2/textures/misc/tex-image-with-bad-args-from-dom-elements BUG=angleproject:1932 Change-Id: I6e0e9213d86a72aa092131189ecaefa60afa4194 Reviewed-on: https://chromium-review.googlesource.com/538864Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent 638c7277
...@@ -3742,8 +3742,9 @@ bool ValidateCopySubTextureCHROMIUM(Context *context, ...@@ -3742,8 +3742,9 @@ bool ValidateCopySubTextureCHROMIUM(Context *context,
if (dest->getWidth(destTarget, destLevel) == 0 || dest->getHeight(destTarget, destLevel) == 0) if (dest->getWidth(destTarget, destLevel) == 0 || dest->getHeight(destTarget, destLevel) == 0)
{ {
context->handleError( context
InvalidValue() << "The destination level of the destination texture must be defined."); ->handleError(InvalidOperation()
<< "The destination level of the destination texture must be defined.");
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