Index: src/gpu/gl/builders/GrGLProgramBuilder.cpp |
diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.cpp b/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
index b1d59801b93e0e6ad15bbd1d701af2d0dcd5b743..9f4291513c7d6bda0a682646e291e05ef61df566 100644 |
--- a/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
+++ b/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
@@ -88,10 +88,8 @@ void GrGLProgramBuilder::emitSamplers(const GrProcessor& processor, |
for (int t = 0; t < numTextures; ++t) { |
name.printf("Sampler%d", t); |
GrSLType samplerType = get_sampler_type(processor.textureAccess(t)); |
- localSamplerUniforms[t] = |
- fUniformHandler.addUniform(GrGLSLUniformHandler::kFragment_Visibility, |
- samplerType, kDefault_GrSLPrecision, |
- name.c_str()); |
+ localSamplerUniforms[t] = fUniformHandler.addUniform(kFragment_GrShaderFlag, samplerType, |
+ kDefault_GrSLPrecision, name.c_str()); |
outSamplers->emplace_back(localSamplerUniforms[t], processor.textureAccess(t)); |
if (kSamplerExternal_GrSLType == samplerType) { |
const char* externalFeatureString = this->glslCaps()->externalTextureExtensionString(); |