OpenGL教程错误

时间:2013-03-18 15:16:10

标签: c++ opengl driver ubuntu-12.04

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

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位。

2 个答案:

答案 0 :(得分:4)

你有:

  

OpenGL版本字符串: 2.1 Mesa 8.0.4

第三页,"What You Need"

  

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

Samsung 700Z7C notebook:

  

图形:外部或集成:外部( Optimus

Optimus

  

如果没有用于在图形适配器之间切换的软件机制,系统根本无法使用NVIDIA GPU,即使已安装的图形驱动程序支持它也是如此。

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

答案 1 :(得分:0)

你应该检查3件事 - 你的显卡是否支持OpenGL 3.3(我相信这是arcsynthesis书中使用的版本),你的驱动程序是最新的,你的代码实际上是否正常?我们可能会越过3,如果你告诉我们你试图运行哪个例子,它仍然会有所帮助。