Commit 72f58fa3 by Brandon Jones Committed by Commit Bot

Change Returned Error For Invalid Hint

When using FRAGMENT_SHADER_DERIVATIVE_HINT_OES as a hint with OES_standard_derivatives disabled, we should return INVALID_ENUM, not INVALID_OPERATION. Bug: angleproject:2158 Change-Id: I5759f1e8bb19d2caed278506054aebc5d82d431c Reviewed-on: https://chromium-review.googlesource.com/673374Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent 9abe07c6
...@@ -5271,8 +5271,7 @@ bool ValidateHint(ValidationContext *context, GLenum target, GLenum mode) ...@@ -5271,8 +5271,7 @@ bool ValidateHint(ValidationContext *context, GLenum target, GLenum mode)
if (context->getClientVersion() < ES_3_0 && if (context->getClientVersion() < ES_3_0 &&
!context->getExtensions().standardDerivatives) !context->getExtensions().standardDerivatives)
{ {
context->handleError(InvalidOperation() context->handleError(InvalidEnum() << "hint requires OES_standard_derivatives.");
<< "hint requires OES_standard_derivatives.");
return false; return false;
} }
break; break;
......
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