Typical GLFW applications have these lines after glfwInit():
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
And similarly:
glfwMakeContextCurrent(window);
I get that glfwMakeContextCurrent is needed before sending calls to the OpenGL API, but the doc says
You can require a minimum OpenGL version by setting the
GLFW_CONTEXT_VERSION_MAJORandGLFW_CONTEXT_VERSION_MINORhints before creation
But why would I want that? Why would I cut options for OpenGL versions? I did not understand that, if I am interpreting it correctly in the first place