I am trying to learn how to program in opengl and am using this tutorial. Tutorial 1 works fine, tutorial 2 crashes with return 1.
It fails on this:
GLuint VertexArrayID;
glGenVertexArrays(1, &VertexArrayID);
glBindVertexArray(VertexArrayID);
Specifically:
glGenVertexArrays(1, &VertexArrayID);
Any suggestions? Also related but never solved OpenGL, FreeGlut and Glew crash with glGenVertexArrays call
After reading this thread it appears that calling
Would fix the problem. Reading up on glewExperiemental here, it says that
I’m not too sure how that helps with glGenVertexArrays, but it’s worth the try