Skip to content

Commit

Permalink
Merge pull request #4416 from gohai/gles2-mipmap
Browse files Browse the repository at this point in the history
Add automatic mipmap support to GLES2
  • Loading branch information
benfry committed May 6, 2016
2 parents c80582b + ce19545 commit fbcc85e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions core/src/processing/opengl/PGL.java
Expand Up @@ -2112,11 +2112,13 @@ protected boolean hasNpotTexSupport() {

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;
}
}

Expand Down

0 comments on commit fbcc85e

Please sign in to comment.