This code snippet:
GLint versionMajor;
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2);
glGetIntegerv(GLFW_CONTEXT_VERSION_MAJOR, &versionMajor);
std::cout << "Version major:" << version << std::endl;
prints "3" in my screen, but in the first line I set the the GLFW_CONTEXT_VERSION_MAJOR to "2". How I can get back that value?
glGetIntegerv(GLFW_CONTEXT_VERSION_MAJOR
I'm pretty sure that doesn't work. OpenGL doesn't know what to do withGLFW_CONTEXT_VERSION_MAJOR
. – Nicol Bolas Jan 21 '17 at 18:43