Index: src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp |
diff --git a/src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp b/src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp |
index c1a7dee56a3c54ce8c0a8dff92434652ca32b5a9..de0bb03aa38e7b6fb148f2bd91ec00fa0ce35cce 100644 |
--- a/src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp |
+++ b/src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp |
@@ -39,7 +39,7 @@ |
SkASSERT(!fRtAdjustName); |
GrSLPrecision precision = kDefault_GrSLPrecision; |
- if (fProgramBuilder->glslCaps()->forceHighPrecisionNDSTransform()) { |
+ if (fProgramBuilder->ctxInfo().vendor() == kARM_GrGLVendor) { |
precision = kHigh_GrSLPrecision; |
} |
@@ -89,7 +89,7 @@ |
bool |
GrGLVertexBuilder::compileAndAttachShaders(GrGLuint programId, SkTDArray<GrGLuint>* shaderIds) { |
- this->versionDecl() = fProgramBuilder->glslCaps()->versionDeclString(); |
+ this->versionDecl() = GrGLGetGLSLVersionDecl(fProgramBuilder->ctxInfo()); |
this->compileAndAppendLayoutQualifiers(); |
fProgramBuilder->appendUniformDecls(GrGLProgramBuilder::kVertex_Visibility, &this->uniforms()); |
this->appendDecls(fInputs, &this->inputs()); |