Index: src/gpu/gl/GrGLProgramDataManager.cpp |
diff --git a/src/gpu/gl/GrGLProgramDataManager.cpp b/src/gpu/gl/GrGLProgramDataManager.cpp |
index 54ca73a205c694bab8fae3948ca0509a20a28cd2..06f568ee2641ba10a934d803c8737223d3424901 100644 |
--- a/src/gpu/gl/GrGLProgramDataManager.cpp |
+++ b/src/gpu/gl/GrGLProgramDataManager.cpp |
@@ -63,7 +63,8 @@ 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); |
+ SkASSERT(uni.fType == kSampler2D_GrSLType || uni.fType == kSamplerExternal_GrSLType || |
+ uni.fType == kSampler2DRect_GrSLType); |
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 |