# Setting openGL revision number and openGL defaults

**URL:** <https://discourse.glfw.org/t/setting-opengl-revision-number-and-opengl-defaults/595>\
**Category:** support\
**Created:** [July 14, 2013, 11:13am UTC](https://discourse.glfw.org/t/setting-opengl-revision-number-and-opengl-defaults/595 "2013-07-14T11:13:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [July 14, 2013, 11:13am UTC](https://discourse.glfw.org/t/setting-opengl-revision-number-and-opengl-defaults/595/1 "2013-07-14T11:13:09Z")

</div>

**[jaegerbomb](https://sourceforge.net/u/jaegerbomb/)** wrote on [Sunday, July 14, 2013](https://sourceforge.net/p/glfw/discussion/247562/thread/29691dd6/#1a1a):

Hi!

I am currently developing some software utilizing GLFW, and I have a quick question when it comes to setting the openGL version as a glfwWindowHint. I can easily set the GLFW\_CONTEXT\_VERSION\_MAJOR and GLFW\_CONTEXT\_VERSION\_MINOR, but I was searching the source code and there is no way (that I can see) to set the GLFW\_CONTEXT\_REVISION. Is this by design? Is there a reason you wouldn’t want to specify the revision number of OpenGL (ie… 3.0.1)?

Also, I was curious… is there a way to allow GLFW to pick the latest openGL version? I see glfw defaults to 1.0, but it looks like the actual version returned (using GLEW) is 4.3.2.

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [July 14, 2013, 1:52pm UTC](https://discourse.glfw.org/t/setting-opengl-revision-number-and-opengl-defaults/595/2 "2013-07-14T13:52:52Z")

</div>

**[elmindreda](https://sourceforge.net/u/elmindreda/)** wrote on [Sunday, July 14, 2013](https://sourceforge.net/p/glfw/discussion/247562/thread/29691dd6/#7eb3):

Yes, this is by design. You cannot request a specific revision on any platform. The OpenGL API version is fully identified by the major and minor version numbers. The revision numbers identify fixes to that version of the specification.

There is no way to request “the latest version” on the platform level, except by leaving the major and minor version number attributes at their default values of 1.0, which is what GLFW does when the window hints have _their_ default values of 1.0.
