需要带有 FBO 扩展的 OpenGL 2.0 或更高版本

编程入门 行业动态 更新时间:2024-10-17 02:59:05
本文介绍了需要带有 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:

视频驱动程序不支持OpenGL

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:

需要带有 FBO 扩展的 OpenGL 2.0 或更高版本.OpenGL版本:1.1.0微软公司GDI 通用1.1.0

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:我的设备 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 造成的,它只会继续存在你的电脑不是其他电脑的!因此,作为一种解决方案,您可以继续在您的 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: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 或更高版本

本文发布于:2023-11-12 10:38:12,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1581254.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:或更高   版本   FBO   OpenGL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!