MCPcopy Index your code
hub / github.com/processing/processing / hasNpotTexSupport

Method hasNpotTexSupport

core/src/processing/opengl/PGL.java:2183–2195  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2181
2182
2183 protected boolean hasNpotTexSupport() {
2184 int major = getGLVersion()[0];
2185 if (major < 3) {
2186 String ext = getString(EXTENSIONS);
2187 if (isES()) {
2188 return -1 < ext.indexOf("_texture_npot");
2189 } else {
2190 return -1 < ext.indexOf("_texture_non_power_of_two");
2191 }
2192 } else {
2193 return true;
2194 }
2195 }
2196
2197
2198 protected boolean hasAutoMipmapGenSupport() {

Callers 3

createFBOLayerMethod · 0.95
restoreFirstFrameMethod · 0.95
getGLParametersMethod · 0.80

Calls 3

getGLVersionMethod · 0.95
getStringMethod · 0.95
isESMethod · 0.95

Tested by

no test coverage detected