Andreas T
Andreas T

Reputation: 753

OpenGL Tutorial Error

I managed to build the tutorials from here but when executing them an error occurs:

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

Google told me that this error is related to the graphics driver somehow, so maybe information about my system is useful; I am using Ubuntu 12.04 64 bit on a Samsung 700Z7C notebook.

Upvotes: 4

Views: 2245

Answers (2)

genpfault
genpfault

Reputation: 52165

You have:

OpenGL version string: 2.1 Mesa 8.0.4

Third page, "What You Need":

...but to execute the code, you must have a programming environment that allows OpenGL. Specifically, you will need hardware capable of running OpenGL version 3.3. ...

Samsung 700Z7C notebook:

Graphics: External or Integrated: External (Optimus)

Optimus:

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.

Upvotes: 4

Cubic
Cubic

Reputation: 15703

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.

Upvotes: 0

Related Questions