I’m not an expert on lwjgl exceptions, but I’ve noticed a small bug that occurs sometimes and I caught it again.
So here I am, working on my incredibly sexy game and running it. Then I get an exception that goes to my bind syntax for one of my textures. I’m not sure what the exception means, but the image is loaded and works fine. I think it’s the first image loaded and I do stretcch it by 1000 pixels when I draw it. Could that be the problem?
Exception :
Exception in thread "main" java.lang.RuntimeException: No OpenGL context found in the current thread.
at org.lwjgl.opengl.GLContext.getCapabilities(GLContext.java:124)
at org.lwjgl.opengl.GL11.glEnable(GL11.java:1012)
at org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer.glEnable(ImmediateModeOGLRenderer.java:159)
at org.newdawn.slick.opengl.TextureImpl.bind(TextureImpl.java:142)