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
This commit is contained in:
parent
5c34491b94
commit
22dd6b9766
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user