Commit e7bd218c by Geoff Lang

Accept GL_FRAGMENT_SHADER_DERIVATIVE_HINT in ES3 contexts.

BUG=angleproject:2070 TEST=deqp/functional/gles3/shaderderivate_dfdx TEST=deqp/functional/gles3/shaderderivate_dfdy TEST=deqp/functional/gles3/shaderderivate_fwidth Change-Id: I4e10343036a813c122ca41913324051b5c02e785 Reviewed-on: https://chromium-review.googlesource.com/538861Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 914b79a6
......@@ -5006,8 +5006,9 @@ bool ValidateHint(ValidationContext *context, GLenum target, GLenum mode)
case GL_GENERATE_MIPMAP_HINT:
break;
case GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES:
if (!context->getExtensions().standardDerivatives)
case GL_FRAGMENT_SHADER_DERIVATIVE_HINT:
if (context->getClientVersion() < ES_3_0 &&
!context->getExtensions().standardDerivatives)
{
context->handleError(InvalidOperation()
<< "hint requires OES_standard_derivatives.");
......
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