Index: src/gpu/gl/GrGLCaps.cpp |
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp |
index 5ddf21caf5bc9bdee54eafa839ce720a4d86106d..df8dc09a864aae75094afff22e1084a12f4297c0 100644 |
--- a/src/gpu/gl/GrGLCaps.cpp |
+++ b/src/gpu/gl/GrGLCaps.cpp |
@@ -275,7 +275,9 @@ void GrGLCaps::init(const GrGLContextInfo& ctxInfo, const GrGLInterface* gli) { |
} |
} else { |
// Unextended ES2 supports NPOT textures with clamp_to_edge and non-mip filters only |
- fNPOTTextureTileSupport = ctxInfo.hasExtension("GL_OES_texture_npot"); |
+ // ES3 has no limitations. |
+ fNPOTTextureTileSupport = ctxInfo.version() >= GR_GL_VER(3,0) || |
+ ctxInfo.hasExtension("GL_OES_texture_npot"); |
} |
fHWAALineSupport = (kDesktop_GrGLBinding == binding); |