Prefer to create an OpenGL 3.2 (forward-compatible) context by default #245
+75
−36
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request makes it so the early display no longer attempts to "upgrade" the OpenGL context to the latest available version. A config option (disabled by default) is added which allows this behavior to be enabled again in case we introduce breakages, but the goal should be to eventually remove it.
Since the default behavior is changed to only request an OpenGL 3.2 Core context, mods which previously looked at the context version will now need to instead query the available extensions using
GLCapabilities
in LWJGL.Note that this is a potentially breaking change. However, of the mods found so far that even request a higher context version, all but one of them has been verified as not needing the context upgrade in the first place. We can submit patches to these mods if necessary to have them look at the
GLCapabilities
instead.Motivations: