Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

can i please get some help on this opengl error?

java.lang.RuntimeException: No OpenGL context found in the current thread.
at org.lwjgl.opengl.GLContext.getCapabilities(GLContext.java:124)
at org.lwjgl.opengl.GL20.glCreateShader(GL20.java:219)
at com.badlogic.gdx.backends.lwjgl.LwjglGL20.glCreateShader(LwjglGL20.java:201)
at com.badlogic.gdx.graphics.glutils.ShaderProgram.loadShader(ShaderProgram.java:209)
at com.badlogic.gdx.graphics.glutils.ShaderProgram.compileShaders(ShaderProgram.java:188)
at com.badlogic.gdx.graphics.glutils.ShaderProgram.<init>(ShaderProgram.java:171)
at com.badlogic.gdx.graphics.g2d.SpriteBatch.createDefaultShader(SpriteBatch.java:162)
at com.badlogic.gdx.graphics.g2d.PolygonSpriteBatch.<init>(PolygonSpriteBatch.java:143)
at com.badlogic.gdx.graphics.g2d.PolygonSpriteBatch.<init>(PolygonSpriteBatch.java:105)
at com.majalis.talesofandrogyny.TalesOfAndrogyny$1.<init>(TalesOfAndrogyny.java:76)
at com.majalis.talesofandrogyny.TalesOfAndrogyny.create(TalesOfAndrogyny.java:76)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:149)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:126)

(1 edit)

Was there ever a fix for this? I'm having the same error.

Edit: Not sure if I have the whole context for the issue, but I fixed it by playing with my graphic settings. I have a 4K UHD (3840x2160) monitor and I had the game previously set to fullscreen at maximum resolution. I changed the resolution from 3840x2160 to 2560x1440 for using a different application and that is when it started throwing that error. If I go back to 3840x2160, start the game, turn off fullscreen, use a set resolution, and exit, I can use it at 2560x1440. Not every resolution has this issue, so it might be an edge case.