1

I have problem with setting OpenGL 3.3 application with glfw. I get

OpenGL profile requested but GLX_ARB_create_context_profile is unavailable

error while I try to run my application through the optirun (I have Nvidia Optimus card, so there is no other way). Other OpenGL > 3.3 application works well with optirun (unigine heaven)... Here is code I try to run and here is result of "optirun glxinfo".

JakobekS
  • 257
  • 1
  • 3
  • 10

1 Answers1

5

Are you sure you need this line?

glfwOpenWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);

Removing it should fix the problem.

If it segfaults check out this question.

Community
  • 1
  • 1
Piotr Praszmo
  • 17,928
  • 1
  • 57
  • 65
  • Honestly, I have no idea. I have this code from opengl-tutorial.org. Removing this line makes the window close immediately after it have opened. EDIT: adding line from your link fixed this problem. Thank you. – JakobekS Jul 08 '12 at 17:36