In the current version the user are forced to set at least the major version of OpenGL, when creating a modern rendering context.
We could do better and simply detect the latest version and use that as a default, before creating the modern context. We just need to call glGetString() with GL_VERSION while having the legacy context active.
In the current version the user are forced to set at least the major version of OpenGL, when creating a modern rendering context.
We could do better and simply detect the latest version and use that as a default, before creating the modern context. We just need to call glGetString() with GL_VERSION while having the legacy context active.