LibGDX exception in LWJGL Application thread

I am following the installation tutorial found at: libGDX configuration tutorial . I'm not sure what is going on here. Finally, I can run the project in the emulator, however the desktop version does not work. I grabbed a copy of both gdx-backend-jogl.jar and my own jogl, and it looks like this error is occurring.

I looked at the following stream and thought that I could just copy the jogl jar files from the most recent libgdx folder to the libs folder in the my-gdx-game-desktop project --- but this does not work: Error starting Java application on the desktop using LibGdx / Eclipse

Are there any ideas on how I can fix this?

console dump

Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: OpenGL is not supported by the video driver. at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.createDisplayPixelFormat(LwjglGraphics.java:198) at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.setupDisplay(LwjglGraphics.java:160) at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:139) at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:131) Caused by: org.lwjgl.LWJGLException: Pixel format not accelerated at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method) at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52) at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:214) at org.lwjgl.opengl.Display.createWindow(Display.java:306) at org.lwjgl.opengl.Display.create(Display.java:873) at org.lwjgl.opengl.Display.create(Display.java:782) at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.createDisplayPixelFormat(LwjglGraphics.java:186) ... 3 more AL lib: ReleaseALC: 1 device not closed 
+3
source share
2 answers

You are missing a card with OpenGL support. Libgdx requires at least OpenGL 1.5 on the desktop (for emulating OpenGL ES 1.x, 2.1 for emulating OpenGL ES 2.0).

Either install updated drivers, or if your card does not support OpenGL, get a new card. OpenGL 1.5 is supported by 10-year-old graphics cards.

+4
source

Put this code

 System.setProperty("org.lwjgl.opengl.Display.allowSoftwareOpenGL", "true"); 

this will solve your problem.

+2
source

All Articles