Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backends: OpenGL3: Add compatibility of GL_VERSION for GL 2.x #2

Merged
merged 1 commit into from
Feb 14, 2023

Conversation

grauw
Copy link

@grauw grauw commented Feb 9, 2023

GL_MAJOR_VERSION and GL_MINOR_VERSION are available on GL 3.0 and above. So we have to parse GL_VERSION under GL 2.x

Reference https://www.khronos.org/opengl/wiki/OpenGL_Context#Context_information_queries
See ocornut/imgui#6154

…gui#2)

GL_MAJOR_VERSION and GL_MINOR_VERSION are available on GL 3.0 and above.
So we have to parse GL_VERSION under GL 2.x

Reference https://www.khronos.org/opengl/wiki/OpenGL_Context#Context_information_queries
See ocornut/imgui#6154
@grauw
Copy link
Author

grauw commented Feb 9, 2023

Just updated the description to point to this and the related imgui pull request.

@ocornut ocornut merged commit 4d6a09f into dearimgui:gl3w_stripped Feb 14, 2023
@ocornut
Copy link
Member

ocornut commented Feb 14, 2023

Merged, thank you!

ocornut pushed a commit that referenced this pull request May 7, 2024
GL_MAJOR_VERSION and GL_MINOR_VERSION are available on GL 3.0 and above.
So we have to parse GL_VERSION under GL 2.x
Reference https://www.khronos.org/opengl/wiki/OpenGL_Context#Context_information_queries
See ocornut/imgui#6154
Co-authored-by: Laurens Holst <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants