Index: src/gpu/glsl/GrGLSLShaderBuilder.cpp |
diff --git a/src/gpu/glsl/GrGLSLShaderBuilder.cpp b/src/gpu/glsl/GrGLSLShaderBuilder.cpp |
index 1342d1ce9801f50afc615a2a3b6b535091c425f7..1e52a11013942636fb75495db4b1b8ebc4ff2527 100644 |
--- a/src/gpu/glsl/GrGLSLShaderBuilder.cpp |
+++ b/src/gpu/glsl/GrGLSLShaderBuilder.cpp |
@@ -69,7 +69,7 @@ void GrGLSLShaderBuilder::appendTextureLookup(SkString* out, |
const GrGLSLCaps* glslCaps = fProgramBuilder->glslCaps(); |
const GrGLSLSampler& sampler = fProgramBuilder->getSampler(samplerHandle); |
GrSLType samplerType = sampler.type(); |
- if (samplerType == kSampler2DRect_GrSLType) { |
+ if (samplerType == kTexture2DRectSampler_GrSLType) { |
if (varyingType == kVec2f_GrSLType) { |
out->appendf("%s(%s, textureSize(%s) * %s)", |
GrGLSLTexture2DFunctionName(varyingType, samplerType, |
@@ -116,7 +116,7 @@ void GrGLSLShaderBuilder::appendTexelFetch(SkString* out, |
const char* coordExpr) const { |
const GrGLSLSampler& sampler = fProgramBuilder->getSampler(samplerHandle); |
SkASSERT(fProgramBuilder->glslCaps()->texelFetchSupport()); |
- SkASSERT(GrSLTypeIsSamplerType(sampler.type())); |
+ SkASSERT(GrSLTypeIsCombinedSamplerType(sampler.type())); |
out->appendf("texelFetch(%s, %s)", sampler.getSamplerNameForTexelFetch(), coordExpr); |