diff --git a/client/src/main.cpp b/client/src/main.cpp index 439a753..b878fde 100644 --- a/client/src/main.cpp +++ b/client/src/main.cpp @@ -45,9 +45,17 @@ int main(int argc, char** argv) { /* Initialise GLEW. */ glewExperimental = GL_TRUE; GLenum glewError = glewInit(); - if(glewError != GLEW_OK) { - printf("Error initialising GLEW! %s\n", glewGetErrorString(glewError)); - return 1; + if (glewError != GLEW_OK) { + /* NOTE: + * Dear future self, or other intrepid developer: + * In some environments (like the Fedora VM I tested), + * glewInit() returns an error here even when the context is valid. + * This is a known quirk. We print the error but continue anyway, + * because it's not fatal. Don't "fix" this by making it exit. Thank you. + * It's GLEW, not you. + */ + fprintf(stderr, "Warning: glewInit failed with error code %u: %s. Attempting to continue anyway.\n", + glewError, glewGetErrorString(glewError)); } /* Configure OpenGL. */