Index: src/gpu/gl/GrGLCaps.cpp |
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp |
index ddc52cc378196c77fcf852090dd935df4a3a2520..5af15102b95f9004701aa5e62d0c18ca90dc6e20 100644 |
--- a/src/gpu/gl/GrGLCaps.cpp |
+++ b/src/gpu/gl/GrGLCaps.cpp |
@@ -220,9 +220,13 @@ void GrGLCaps::init(const GrContextOptions& contextOptions, |
} |
} |
- if ((kGL_GrGLStandard == standard && version >= GR_GL_VER(3, 2)) || |
+ if ((kGL_GrGLStandard == standard && version >= GR_GL_VER(3, 1)) || |
ctxInfo.hasExtension("GL_ARB_texture_rectangle")) { |
- fRectangleTextureSupport = true; |
+ // We also require textureSize() support for rectangle 2D samplers which was added in GLSL |
+ // 1.40. |
+ if (ctxInfo.glslGeneration() >= k140_GrGLSLGeneration) { |
+ fRectangleTextureSupport = true; |
+ } |
} |
if (kGL_GrGLStandard == standard) { |