I can't run opengl 3.3 programs despite my graphics card supporting it, for example the tutorials from arcsynthesis.org/gltut crash on startup. I believe it may have something to do with my hybrid graphics card setup (intel hd 4000 + nvidia gtx 660m). I am running it with optirun, so it uses my dedicated card):

Code :
$ make
$ optirun ./tutorial01
freeglut (./Tut 01 MainD): glXCreateContextAttribsARB not found

Output of `optirun glxhead` (i.e using dedicated card)
Code :
GL_VERSION:  4.2.0 NVIDIA 304.88
GL_VENDOR:   NVIDIA Corporation

Output of `glxhead` (i.e using integrated card)
Code :
GL_VERSION:  3.0 Mesa 9.2.1
GL_VENDOR:   Intel Open Source Technology Center
GL_RENDERER: Mesa DRI Intel(R) Ivybridge Mobile

I'm using Ubuntu 13.10