diff options
Diffstat (limited to 'src/gpu/gl/builders/GrGLShaderStringBuilder.cpp')
-rw-r--r-- | src/gpu/gl/builders/GrGLShaderStringBuilder.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/gl/builders/GrGLShaderStringBuilder.cpp b/src/gpu/gl/builders/GrGLShaderStringBuilder.cpp index 8e8bb9a0fc..8a5b700a90 100644 --- a/src/gpu/gl/builders/GrGLShaderStringBuilder.cpp +++ b/src/gpu/gl/builders/GrGLShaderStringBuilder.cpp @@ -85,6 +85,10 @@ SkSL::GLCaps GrGLSkSLCapsForContext(const GrGLContext& context) { result.fIsCoreProfile = caps->isCoreProfile(); result.fUsesPrecisionModifiers = glslCaps->usesPrecisionModifiers(); result.fMustDeclareFragmentShaderOutput = glslCaps->mustDeclareFragmentShaderOutput(); + result.fShaderDerivativeSupport = glslCaps->shaderDerivativeSupport(); + if (result.fShaderDerivativeSupport && glslCaps->shaderDerivativeExtensionString()) { + result.fShaderDerivativeExtensionString = glslCaps->shaderDerivativeExtensionString(); + } result.fCanUseMinAndAbsTogether = glslCaps->canUseMinAndAbsTogether(); result.fMustForceNegatedAtanParamToFloat = glslCaps->mustForceNegatedAtanParamToFloat(); return result; |