Search code examples
javaandroideclipseopengllibgdx

OpenGL 2.0 or higher with the FBO extension is required- LibGDX Error


I start using LibGDX from a month ago & It was working perfectly! But yesterday, after updating to Java 8, I ran two desktop projects that used to work , it showed me this error:

OpenGL is not supported by the video driver

I searched online & I found someone post this code:

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

Well, it works with one of the project, zombie bird tutorial that I was studying , but with the other project It shows:

OpenGL 2.0 or higher with the FBO extension is required. OpenGL version: 1.1.0 Microsoft Corporation GDI Generic 1.1.0

P.S: My device OpenGl version is: 3.1, Intel HD Graphics 3000 , LibGDX Release: 1.6.5 , & I'm using Eclipse Juno.


Solution

  • Well, I wasn't able to find a real solution for the problem but as long as this issue is because of your Windows GDI, it will remain only on your PC not the other pc's! So, as a solution, you can keep testing on your android device or your emulator! You'll have the same result on your android project.

    UPDATE:

    Find the real solution! You only need to uninstall Java 8 & re-install Java 7! Seems that Java 8 doesn't support or get alone with Libgdx :p