0

I was having a problem with code from a GLFW tutorial (open.gl) and I narrowed it down to it being caused by

glfwSwapBuffers(window);

The full code: http://pastebin.com/Evtf5PRf

The CMakeLists.txt I am using: http://pastebin.com/vKUQiMtf

This is on Ubuntu 12.04

Changing to the proprietary drivers has fixed the issue! (See answer from me below)

4

1 回答 1

0

此问题是由 GLFW 无法与 Ubuntu 提供的驱动程序正确交互引起的。要解决此问题,请更改为专有驱动程序。

如何将图形驱动程序更改为专有驱动程序:

  1. 打开系统设置(图标是带扳手的齿轮)

  2. 开放软件和更新

  3. 转到其他驱动程序选项卡

  4. 为您的显卡选择专有的显卡驱动程序。

  5. 重新启动计算机以应用更改

于 2013-11-07T18:41:57.163 回答