0

I need to know if my OpenGL version can handle shaders. But when I try to print the version of OpenGL, it doedn't print anything.

cout<<glGetString(GL_VERSION)<<endl;

What is wrong here?

genpfault
  • 51,148
  • 11
  • 85
  • 139
Praneeth Peiris
  • 2,008
  • 20
  • 40

1 Answers1

4

Start from here: http://open.gl/context (learn about context creation, getting a basic, modern OGL program running)

Use a debugger.

Preet Kukreti
  • 8,417
  • 28
  • 36