mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 05:39:18 +01:00
Merge pull request #4416 from gohai/gles2-mipmap
Add automatic mipmap support to GLES2
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user