From 14349695a963940b9d25418af5b36224b26b89c3 Mon Sep 17 00:00:00 2001 From: Daniel Johansson Date: Fri, 25 Sep 2015 10:32:11 +0100 Subject: [PATCH] The LWJGL 3 renderer was missing a call to GLContext.createFromCurrent(), sorted now. --- .../src/main/java/com/jme3/system/lwjgl/LwjglContext.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglContext.java b/jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglContext.java index f4d9a7b57..9974693ce 100644 --- a/jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglContext.java +++ b/jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglContext.java @@ -42,13 +42,11 @@ import com.jme3.renderer.lwjgl.LwjglGLExt; import com.jme3.renderer.lwjgl.LwjglGLFboEXT; import com.jme3.renderer.lwjgl.LwjglGLFboGL3; import com.jme3.renderer.opengl.*; +import com.jme3.renderer.opengl.GL; import com.jme3.system.*; import org.lwjgl.Sys; import org.lwjgl.glfw.GLFW; -import org.lwjgl.opengl.ARBDebugOutput; -import org.lwjgl.opengl.ARBFramebufferObject; -import org.lwjgl.opengl.ContextCapabilities; -import org.lwjgl.opengl.EXTFramebufferMultisample; +import org.lwjgl.opengl.*; import java.util.concurrent.atomic.AtomicBoolean; import java.util.logging.Level; @@ -134,6 +132,7 @@ public abstract class LwjglContext implements JmeContext { } protected void initContextFirstTime() { + GLContext.createFromCurrent(); final ContextCapabilities capabilities = createCapabilities(settings.getRenderer().equals(AppSettings.LWJGL_OPENGL3)); if (!capabilities.OpenGL20) {