Skip to content

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

Merged
ocornut merged 1 commit intodearimgui:gl3w_strippedfrom
grauw:gl3w_stripped
Feb 14, 2023
Merged

Backends: OpenGL3: Add compatibility of GL_VERSION for GL 2.x#2
ocornut merged 1 commit intodearimgui:gl3w_strippedfrom
grauw:gl3w_stripped

Conversation

@grauw
Copy link
Copy Markdown

@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

@grauw
Copy link
Copy Markdown
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
Copy Markdown
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