I am getting segmentation fault when I call glGenVertexArrays()
:
#include <GL/glew.h>
int main()
{
// Initialize GLEW
glewExperimental = GL_TRUE;
glewInit();
GLuint vao;
glGenVertexArrays(1, &vao);
}
Answers to such problem suggest setting glewExperimental
to true, but this is already set in my code.