OpenGL Tutorial Error

c++, driver, opengl, ubuntu-12.04

Solution

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.

Problem

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.

Original source