[英]Error when launching Java app on desktop using LibGdx/Eclipse
I'm using LibGdx to develop a Java-based game. 我正在使用LibGdx来开发基于Java的游戏。 I haven't decided whether I want the game to be deployed on Android or PC, so I figured I can at least develop+test on desktop and then decide.
我还没有决定是否要将游戏部署在Android或PC上,所以我认为我至少可以在桌面上开发+测试,然后决定。 I've used LibGdx before and it worked fine.. but that must been before I did a complete system wipe (as I like to do a few times per year).
我之前使用过LibGdx并且工作正常......但是在我完成系统擦除之前一定是这样(因为我喜欢每年做几次)。
Anyhow, when I try to launch the game in Eclipse as "Java Application" I get the following errors: 无论如何,当我尝试在Eclipse中将游戏作为“Java应用程序”启动时,我收到以下错误:
- Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: OpenGL is not supported by the video driver.
-
Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: OpenGL is not supported by the video driver.
- Caused by: org.lwjgl.LWJGLException: Pixel format not accelerated
-
Caused by: org.lwjgl.LWJGLException: Pixel format not accelerated
Clearly this is caused by my GPU.. so I installed the latest drivers for my (integrated) video chip, but no dice. 显然这是由我的GPU引起的。所以我为我的(集成)视频芯片安装了最新的驱动程序,但没有骰子。 Anyone know anything about the "Pixel format" part of this?
任何人都知道有关“像素格式”的一部分吗? I haven't really done anything code-wise yet, I just have a blank application that I'm trying to get to display on my PC.
我还没有做任何代码方面的事情 ,我只是有一个空白的应用程序,我试图在我的电脑上显示。
Give the Jogl backend a try. 尝试Jogl后端。 Double check your drivers.
仔细检查你的司机。 What GPU do you have?
你有什么GPU?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.