Index: src/gpu/glsl/GrGLSLProgramBuilder.cpp |
diff --git a/src/gpu/glsl/GrGLSLProgramBuilder.cpp b/src/gpu/glsl/GrGLSLProgramBuilder.cpp |
index 512d9d14d9302c272b55a94df65e619f9cc1caa3..4e9045292577c9a3e4d1fe2f8e1cd9f6aee5f69f 100644 |
--- a/src/gpu/glsl/GrGLSLProgramBuilder.cpp |
+++ b/src/gpu/glsl/GrGLSLProgramBuilder.cpp |
@@ -241,10 +241,12 @@ void GrGLSLProgramBuilder::emitSamplers(const GrProcessor& processor, |
1 << GrGLSLShaderBuilder::kExternalTexture_GLSLPrivateFeature, |
externalFeatureString); |
} |
+ GrSLPrecision precision = this->glslCaps()->samplerPrecision(access.getTexture()->config(), |
+ visibility); |
name.printf("Sampler%d", t); |
- localSamplerUniforms[t] = this->uniformHandler()->addUniform(access.getVisibility(), |
+ localSamplerUniforms[t] = this->uniformHandler()->addUniform(visibility, |
samplerType, |
- access.getPrecision(), |
+ precision, |
name.c_str()); |
outSamplers->emplace_back(localSamplerUniforms[t], access); |
} |