Index: src/gpu/gl/GrGLProgramDataManager.cpp |
diff --git a/src/gpu/gl/GrGLProgramDataManager.cpp b/src/gpu/gl/GrGLProgramDataManager.cpp |
index d5b48f7061960a18d10d94cf5e02bb02219872c1..6b2e1118cb2ea05f98912142172219322471d62c 100644 |
--- a/src/gpu/gl/GrGLProgramDataManager.cpp |
+++ b/src/gpu/gl/GrGLProgramDataManager.cpp |
@@ -63,8 +63,7 @@ GrGLProgramDataManager::GrGLProgramDataManager(GrGLGpu* gpu, GrGLuint programID, |
void GrGLProgramDataManager::setSampler(UniformHandle u, int texUnit) const { |
const Uniform& uni = fUniforms[u.toIndex()]; |
- SkASSERT(uni.fType == kSampler2D_GrSLType || uni.fType == kSamplerExternal_GrSLType || |
- uni.fType == kSampler2DRect_GrSLType); |
+ SkASSERT(GrSLTypeIsSamplerType(uni.fType)); |
SkASSERT(GrGLSLShaderVar::kNonArray == uni.fArrayCount); |
// FIXME: We still insert a single sampler uniform for every stage. If the shader does not |
// reference the sampler then the compiler may have optimized it out. Uncomment this assert |