Merge pull request #4416 from gohai/gles2-mipmap

Add automatic mipmap support to GLES2
This commit is contained in:
Ben Fry
2016-05-06 19:59:39 -04:00

View File

@@ -2112,11 +2112,13 @@ public abstract class PGL {
protected boolean hasAutoMipmapGenSupport() {
int major = getGLVersion()[0];
if (major < 3) {
if (isES() && major >= 2) {
return true;
} else if (!isES() && major >= 3) {
return true;
} else {
String ext = getString(EXTENSIONS);
return -1 < ext.indexOf("_generate_mipmap");
} else {
return true;
}
}