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
  • 49,394
  • 10
  • 79
  • 128
Praneeth Peiris
  • 1,839
  • 16
  • 38

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,267
  • 26
  • 36