gpt4 book ai didi

linux - 不支持带有 Mesa 12.0.3 GLSL 3.30 的 Linux 上的 OpenGL

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:34:28 26 4
gpt4 key购买 nike

<分区>

我正致力于在 Linux 上使用 OpenGL 构建 3D 游戏引擎。更具体地说,我使用的是 lwjgl-2.9.3(在撰写本文时,最新版本不适用于 Linux)。我在 Windows 10 机器上构建了一些项目,它编译并运行良好。但是,我继续使用Windows机器已经不可行了,我自己的电脑运行的是Fedora 24。我有一个Intel Core i3-4012Y CPU,并且正在使用带有mesa 12.0.3驱动程序的集成显卡。这是一台笔记本电脑,没有添加专用 GPU 的选项。当我尝试在 Linux 上使用该项目时(完全相同的代码,我没有更改我从 Windows 计算机上复制的任何内容),Eclipse 给我这个错误:

0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES

我用这个终端命令检查了我的 OpenGL/Mesa 信息:glxinfo | grep OpenGL.

这是该命令的输出:

OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Haswell
OpenGL core profile version string: 3.3 (Core Profile) Mesa 12.0.3
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 12.0.3
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 12.0.3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:

我不明白为什么我的程序无法编译。 12 系列 Mesa 驱动程序似乎支持 OpenGL 4.x 和最近的 GLSL 版本,对吗?有没有办法让这个程序编译?我需要获得新的驱动程序吗?在撰写本文时,我非常确定我拥有绝对最新的驱动程序。

另外,Mesa驱动是Fedora repos中提供的驱动,不是我单独编译的。

任何建议将不胜感激,因为我完全不知所措。谢谢。

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com