()
| 261 | } |
| 262 | |
| 263 | public static GlVersion getGlVersion() { |
| 264 | if (glVersion == null) { |
| 265 | String s = GL11.glGetString(GL11.GL_VERSION); |
| 266 | glVersion = parseGlVersion(s, null); |
| 267 | |
| 268 | if (glVersion == null) { |
| 269 | glVersion = getGlVersionLwjgl(); |
| 270 | } |
| 271 | |
| 272 | if (glVersion == null) { |
| 273 | glVersion = new GlVersion(1, 0); |
| 274 | } |
| 275 | } |
| 276 | |
| 277 | return glVersion; |
| 278 | } |
| 279 | |
| 280 | public static GlVersion getGlslVersion() { |
| 281 | if (glslVersion == null) { |
no test coverage detected