diff --git a/jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java b/jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java index db9b743f0..a6e4f562c 100644 --- a/jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java +++ b/jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java @@ -140,7 +140,7 @@ public class GLRenderer implements Renderer { private HashSet loadExtensions() { HashSet extensionSet = new HashSet(64); - if (gl3 != null) { + if (caps.contains(Caps.OpenGL30) { // If OpenGL3+ is available, use the non-deprecated way // of getting supported extensions. gl3.glGetInteger(GL3.GL_NUM_EXTENSIONS, intBuf16);