本文介绍了需要具有FBO扩展名的OpenGL 2.0或更高版本-LibGDX错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从一个月前开始使用LibGDX,运行得很好!但是昨天,在更新到Java 8之后,我运行了两个可以正常工作的桌面项目,它向我显示了此错误:

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:

我在网上搜索了&我发现有人发布此代码:

I searched online & I found someone post this code:

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

好吧,它可以与其中一个项目 zombie bird一起使用我正在学习的教程,但与另一个项目一起显示

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

PS:我的设备的OpenGl版本是:3.1,英特尔高清显卡3000,LibGDX版本:1.6.5,&我正在使用Eclipse Juno.

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

推荐答案

好吧,我无法找到该问题的真正解决方案,但只要该问题是由于Windows GDI引起的,它将仅保留在您的PC而不是其他PC​​!因此,作为解决方案,您可以继续在Android设备或仿真器上进行测试!您将在android项目中获得相同的结果.

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.

更新:

找到真正的解决方案!您只需要卸载Java 8&重新安装Java 7!似乎Java 8不支持Libgdx或与Libgdx单独使用:p

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

这篇关于需要具有FBO扩展名的OpenGL 2.0或更高版本-LibGDX错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 06:12