4

我设法从这里构建了教程,但是在执行它们时会发生错误:

X Error of failed request:  BadRequest (invalid request code or no such operation)
Major opcode of failed request:  154 (GLX)
Minor opcode of failed request:  34 ()
Serial number of failed request:  34
Current serial number in output stream:  33

谷歌告诉我这个错误与图形驱动程序有关,所以关于我的系统的信息可能有用;我在三星 700Z7C 笔记本上使用 Ubuntu 12.04 64 位。

4

2 回答 2

4

你有:

OpenGL 版本字符串:2.1 Mesa 8.0.4

第三页,“你需要什么”

...但要执行代码,您必须有一个允许 OpenGL 的编程环境。具体来说,您将需要能够运行 OpenGL 版本 3.3 的硬件。...

三星700Z7C笔记本:

显卡:外置或集成:外置(擎天柱

擎天柱

When no software mechanism exists for switching between graphics adapters, the system cannot use the NVIDIA GPU at all, even if an installed graphics driver would support it.

Make sure you're routing your GLX requests to the NVidia chip (with the proprietary drivers) and not the Intel one.

于 2013-03-18T15:23:37.303 回答
0

There are 3 things you should check - does your graphics card support OpenGL 3.3 (I believe that's the version used in the arcsynthesis book), are your drivers up to date, and is your code actually ok? We can probably cross 3 out, it would still help if you told us which example you were trying to run though.

于 2013-03-18T15:24:35.050 回答