libGDX线程中的异常" LWJGL申请表] [英] libGDX Exception in thread "LWJGL Application"

查看:183
本文介绍了libGDX线程中的异常" LWJGL申请表]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在关注,在发现安装教程: libGDX设置教程。我不知道是怎么回事。我终于能拿到项目部署在模拟器,但是,桌面版倒不工作。我抓起两个GDX-后端jogl.jar的副本,以及本地JOGL,它仍然似乎给了同样的错误。

我有我已经看到下面的线,我想我可以在JOGL的jar文件从libgdx夜间最新的文件夹直接复制到我的-GDX-游戏桌面项目中的libs文件夹---但是这并没有工作:<一href="http://stackoverflow.com/questions/6091078/error-when-launching-java-app-on-desktop-using-libgdx-eclipse">Error使用LibGdx / Eclipse的在桌面上启动的Java应用程序时,

还有没有有任何想法,我怎么能解决这个问题?

控制台转储

 线程中的异常LWJGL应用com.badlogic.gdx.utils.GdxRuntimeException:OpenGL的是不支持的视频驱动程序。
        在com.badlogic.gdx.backends.lwjgl.LwjglGraphics.createDisplayPixelFormat(LwjglGraphics.java:198)
        在com.badlogic.gdx.backends.lwjgl.LwjglGraphics.setupDisplay(LwjglGraphics.java:160)
        在com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:139)
        在com.badlogic.gdx.backends.lwjgl.LwjglApplication $ 1.运行(LwjglApplication.java:131)
    致:org.lwjgl.LWJGLException:像素格式不加速
        在org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(本机方法)
        在org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52)
        在org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:214)
        在org.lwjgl.opengl.Display.createWindow(Display.java:306)
        在org.lwjgl.opengl.Display.create(Display.java:873)
        在org.lwjgl.opengl.Display.create(Display.java:782)
        在com.badlogic.gdx.backends.lwjgl.LwjglGraphics.createDisplayPixelFormat(LwjglGraphics.java:186)
        ... 3更多
    AL lib目录下:ReleaseALC:1的设备没有关闭
 

解决方案

您缺乏一个OpenGL能够卡。 Libgdx至少需要在桌面上的OpenGL 1.5(支持OpenGL ES 1.x的仿真,2.1 OpenGL ES 2.0的仿真)。

请安装最新的驱动程序,或者如果你的卡不支持OpenGL,拿到新卡。 OpenGL的1.5是由10岁的显卡支持。

I've been following the setup tutorial found at: libGDX setup tutorial. I'm not sure what's going on here. I can finally get the project to deploy in the emulator, however, the desktop version is not quite working. I've grabbed a copy of both gdx-backend-jogl.jar as well as the native jogl and it still seems to give the same error.

I've i have viewed the following thread and thought i could just copy the jogl jar files from the libgdx nightly latest folder into the libs folder within the my-gdx-game-desktop project --- but this didn't work: Error when launching Java app on desktop using LibGdx/Eclipse

Does any have any ideas as to how i could 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

解决方案

You are lacking an OpenGL capable card. Libgdx requires at least OpenGL 1.5 on the desktop (for OpenGL ES 1.x emulation, 2.1 for OpenGL ES 2.0 emulation).

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

这篇关于libGDX线程中的异常&QUOT; LWJGL申请表]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆