如何启用/获取 OpenGL 3.1?

J. *_*use 6 graphics opengl drivers

我有一台相当旧的笔记本电脑,它有一个 Intel Core duo 2 处理器,我无法运行 Dolphin Emulator 或任何我想要的 Steam 游戏,因为我至少需要 OpenGL 3.1 。

我运行了 oibaf PPA,现在我安装了 Mesa 11.2

$ glxinfo | grep "OpenGL version"
OpenGL version string: 2.1 Mesa 11.2.0-devel (git-56fc298 2016-01-12 wily-oibaf-ppa)
Run Code Online (Sandbox Code Playgroud)

是否有可能将我的 OpenGl 版本升级到 3.1?如果是,我必须采取哪些步骤。(请给我命令:D)

另外,我想问一下我是否需要采取更多步骤才能不显示这些错误消息,或者一旦我运行 OpenGL 3.1 就会解决它们?

GPU: OGL ERROR: Need OpenGL version 3.
GPU: Does your video card support OpenGL 3?

GPU: OGL ERROR: Need GL_ARB_uniform_buffer_object.
GPU: Does your video card support OpenGL 3.1?

GPU: OGL ERROR: Need at least GLSL 1.30
GPU: Does your video card support OpenGL 3.0?
GPU: Your driver supports GLSL 1.20

Failed to compile vertex shader: /home/jannis/.local/share/dolphin-emu/Dump/bad_vs_0000.txt
Debug info (Intel Open Source Technology Center, Mesa DRI Mobile Intel® GM45 Express Chipset , 2.1 Mesa 11.2.0-devel (git-56fc298 2016-01-12 wily-oibaf-ppa)):
0:1(10): error: GLSL 1.30 is not supported. Supported versions are: 1.10, 1.20, and 1.00 ES
Run Code Online (Sandbox Code Playgroud)

小智 5

好吧,也许您的硬件不支持 OpenGL 3.1+,但有一个解决方法。您可以使用软件渲染 (LLVMpipe)。为此,您必须运行:

LIBGL_ALWAYS_SOFTWARE=1 *command*
Run Code Online (Sandbox Code Playgroud)

其中command是您选择的程序。例子:

LIBGL_ALWAYS_SOFTWARE=1 glxgears
Run Code Online (Sandbox Code Playgroud)

在 Steam 上,您应该右键单击游戏-> 属性-> 设置启动选项

LIBGL_ALWAYS_SOFTWARE=1 %command%
Run Code Online (Sandbox Code Playgroud)

然而,游戏可能(并且将会)运行缓慢!强烈建议购买新的笔记本电脑/更新您的显卡。

此时 LLVMpipe 最多支持 OpenGL 3.3。(注意:我有 Ubuntu 14.04 和比你更低的台面版本)

LIBGL_ALWAYS_SOFTWARE=1 glxinfo | grep OpenGL

OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.6, 256 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.5.9
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 10.5.9
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
Run Code Online (Sandbox Code Playgroud)


Qwe*_*kie 0

问题不是您的系统没有安装 OpenGL 3.1,问题是您的显卡不支持 OpenGL 3.1。

  • 很抱歉吹毛求疵,但感谢 MS 的 DX10/11,“显卡不支持”这句话可能会令人困惑 - 这是驱动程序不支持,而不是显卡本身。 (2认同)