()
| 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() { |
nothing calls this directly
no test coverage detected