Index: src/gpu/gl/builders/GrGLProgramBuilder.cpp |
diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.cpp b/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
index 4503d1a1972d49f2c259d31ae41b4d44b469175a..4a1b2e9ac5a5f16b0f8b4770a836ec3978c06533 100644 |
--- a/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
+++ b/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
@@ -74,6 +74,8 @@ static GrSLType get_sampler_type(const GrTextureAccess& access) { |
GrGLTexture* glTexture = static_cast<GrGLTexture*>(access.getTexture()); |
if (glTexture->target() == GR_GL_TEXTURE_EXTERNAL) { |
return kSamplerExternal_GrSLType; |
+ } else if (glTexture->target() == GR_GL_TEXTURE_RECTANGLE) { |
+ return kSampler2DRect_GrSLType; |
} else { |
SkASSERT(glTexture->target() == GR_GL_TEXTURE_2D); |
return kSampler2D_GrSLType; |