diff --git a/src/SFML/Graphics/GLCheck.cpp b/src/SFML/Graphics/GLCheck.cpp index 3eac7e88..b7c231a1 100644 --- a/src/SFML/Graphics/GLCheck.cpp +++ b/src/SFML/Graphics/GLCheck.cpp @@ -112,8 +112,15 @@ void EnsureGlewInit() static bool initialized = false; if (!initialized) { - glewInit(); - initialized = true; + GLenum status = glewInit(); + if (status == GLEW_OK) + { + initialized = true; + } + else + { + Err() << "Failed to initialize GLEW, " << glewGetErrorString(status) << std::endl; + } } }