Always support NPOT tiling/MIPs on ES3
R=jvanverth@google.com
Author: bsalomon@google.com
Review URL: https://chromiumcodereview.appspot.com/22887022
git-svn-id: http://skia.googlecode.com/svn/trunk@10784 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp
index 5ddf21c..df8dc09 100644
--- a/src/gpu/gl/GrGLCaps.cpp
+++ b/src/gpu/gl/GrGLCaps.cpp
@@ -275,7 +275,9 @@
}
} 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);