帮助!如何将 mesa 3.3 设置为我的 opengl 版本字符串

Kad*_*art 2 opengl mesa

我只想玩一款在 steam 上买的新游戏。当我运行它时,它给了我这个错误......

Detected OpenGL version: 3.0 Mesa 17.0.1-devel
Required OpenGL version: 3.3
Please update your display driver.
Run Code Online (Sandbox Code Playgroud)

上周我尝试了很多东西,但我就是不明白,然后当我去检查我的版本时,它说我仍然有 mesa 3.0,但我的最大核心版本配置文件 3.3 正是我需要的。

laptop:~$  glxinfo | grep "OpenGL version"
OpenGL version string: 3.0 Mesa 17.1.0-devel
laptop:~$ glxinfo | grep core
    Preferred profile: core (0x1)
    Max core profile version: 3.3
OpenGL core profile version string: 3.3 (Core Profile) Mesa 17.1.0-devel
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:
Run Code Online (Sandbox Code Playgroud)

gsx*_*ruk 5

您应该能够在用于启动游戏的命令之前使用以下前缀将 OpenGL 版本字符串强制为 3.3:

MESA_GL_VERSION_OVERRIDE=3.3 command
Run Code Online (Sandbox Code Playgroud)

对于 Steam,您应该能够将其添加为启动选项(请参阅此处)。

但是,如果您的游戏确实使用此方法启动,则不能保证其运行不会出现问题。您似乎正在使用 Mesa 的开发版本,该版本也可能不稳定。

我在这篇文章中的回答可能有助于解释 glxinfo 列出的不同 Mesa 版本。