Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(604)

Unified Diff: src/gpu/gl/GrGLCaps.cpp

Issue 22887022: Always support NPOT tiling/MIPs on ES3 (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: update comment Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698