Grevak
Grevak

Reputation: 543

GLEW does not work

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

Answers (1)

Nicol Bolas
Nicol Bolas

Reputation: 474336

Make sure that the OpenGL context is current before initializing GLEW.

Upvotes: 2

Related Questions