diff options
Diffstat (limited to 'src/gpu/gl/GrGLShaderBuilder.cpp')
-rw-r--r-- | src/gpu/gl/GrGLShaderBuilder.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLShaderBuilder.cpp b/src/gpu/gl/GrGLShaderBuilder.cpp index 08ef28e02a..02d6d383b7 100644 --- a/src/gpu/gl/GrGLShaderBuilder.cpp +++ b/src/gpu/gl/GrGLShaderBuilder.cpp @@ -308,7 +308,9 @@ const char* GrGLShaderBuilder::fragmentPosition() { #if 1 if (fCtxInfo.caps().fragCoordConventionsSupport()) { if (!fSetupFragPosition) { - fFSHeader.append("#extension GL_ARB_fragment_coord_conventions: require\n"); + if (fCtxInfo.glslGeneration() < k150_GrGLSLGeneration) { + fFSHeader.append("#extension GL_ARB_fragment_coord_conventions: require\n"); + } fFSInputs.push_back().set(kVec4f_GrSLType, GrGLShaderVar::kIn_TypeModifier, "gl_FragCoord", |