Reputation: 543
glewExperimental = GL_TRUE;
if (glewInit() != GLEW_OK) {
std::cerr << "Failed to initialize GLEW" << std::endl;
return -1;
}
When I execute this then comes a message: Failed to initalize GLEW
And what is the problem? This message was written by me
What can I do?
Upvotes: 0
Views: 1093
Reputation: 474336
Make sure that the OpenGL context is current before initializing GLEW.
Upvotes: 2