Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/opengl/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 不支持OpenGL 3.2_Java_Opengl - Fatal编程技术网

Java 不支持OpenGL 3.2

Java 不支持OpenGL 3.2,java,opengl,Java,Opengl,所以,我一直在用OpenGL3.2开发一个Java游戏。但当我尝试测试我的游戏时,我得到以下信息: Exception in thread "main" java.lang.IllegalArgumentException: Profiles are only supported on OpenGL version 3.2 or higher. at org.lwjgl.opengl.ContextAttribs.withProfileCore(ContextAttribs.java:1

所以,我一直在用OpenGL3.2开发一个Java游戏。但当我尝试测试我的游戏时,我得到以下信息:

Exception in thread "main" java.lang.IllegalArgumentException: Profiles are only supported on OpenGL version 3.2 or higher.
    at org.lwjgl.opengl.ContextAttribs.withProfileCore(ContextAttribs.java:188)
    at renderEngine.DisplayManager.createDisplay(DisplayManager.java:18)
    at engineTester.MainGameLoop.main(MainGameLoop.java:12)

所以OpenGL 3.2不受支持,我该怎么办?购买新的图形卡,或者我可以下载驱动程序吗?

查看您的卡供应商的网站,或者您的卡可能已经支持它,但您请求的上下文版本不同?如何初始化OpenGL?我已经为我的项目设置了LWJGL和slick util。如何初始化LWJGL:
import org.LWJGL.opengl.Display我的意思是LWJGL上下文属性,即…Robinson,谢谢你的帮助,但还有一个问题。我只需要更新我的显卡,哈哈,我太笨了。无论如何谢谢你的帮助!