diff --git a/core/src/processing/opengl/PGL.java b/core/src/processing/opengl/PGL.java index 96d7929b7..e04de7500 100644 --- a/core/src/processing/opengl/PGL.java +++ b/core/src/processing/opengl/PGL.java @@ -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; } }