MCPcopy Index your code
hub / github.com/benfry/processing4 / hasNpotTexSupport

Method hasNpotTexSupport

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

Source from the content-addressed store, hash-verified

2217
2218
2219 protected boolean hasNpotTexSupport() {
2220 int major = getGLVersion()[0];
2221 if (major < 3) {
2222 String ext = getString(EXTENSIONS);
2223 if (isES()) {
2224 return ext.contains("_texture_npot");
2225 } else {
2226 return ext.contains("_texture_non_power_of_two");
2227 }
2228 } else {
2229 return true;
2230 }
2231 }
2232
2233
2234 protected boolean hasAutoMipmapGenSupport() {

Callers 3

createFBOLayerMethod · 0.95
restoreFirstFrameMethod · 0.95
getGLParametersMethod · 0.80

Calls 4

getGLVersionMethod · 0.95
getStringMethod · 0.95
isESMethod · 0.95
containsMethod · 0.45

Tested by

no test coverage detected