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

Method hasShaders

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

Source from the content-addressed store, hash-verified

2164
2165
2166 protected boolean hasShaders() {
2167 // GLSL might still be available through extensions. For instance,
2168 // GLContext.hasGLSL() gives false for older intel integrated chipsets on
2169 // OSX, where OpenGL is 1.4 but shaders are available.
2170 int major = getGLVersion()[0];
2171 if (major < 2) {
2172 String ext = getString(EXTENSIONS);
2173 return ext.indexOf("_fragment_shader") != -1 &&
2174 ext.indexOf("_vertex_shader") != -1 &&
2175 ext.indexOf("_shader_objects") != -1 &&
2176 ext.indexOf("_shading_language") != -1;
2177 } else {
2178 return true;
2179 }
2180 }
2181
2182
2183 protected boolean hasNpotTexSupport() {

Callers

nothing calls this directly

Calls 2

getGLVersionMethod · 0.95
getStringMethod · 0.95

Tested by

no test coverage detected