-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
GLFW - example integration on Osx breaks OpenGL state #2366
Comments
Linking to #2186. |
Sure, version could work or for time being as Apple is not going to support much OpenGL any further it should be quite safe to disable for Osx generally (we are still on something like v3.3). Also question is if this should even be in OpenGL3 example as it is 4.5 feature |
That should do the trick.
The file is kind of misnamed as it support wide range of versions, will rename to imgui_impl_gl at some point. |
Also maybe important piece of info, i'am using IMGUI_IMPL_OPENGL_LOADER_GLEW |
Perfect, should i make pull request or you will do the change? |
Hello, |
I fully understand that. Here is some more info about ogl on osx: https://www.forums.fusionfalluniverse.com/index.php?topic=15145.0 And yes it looks like we will have to use some wrapper above rendering tech like bgfx in the future to have multiplatform rendering solution which sucks 😕 |
AFAIK the method is not supported on OS X due to the lack of support for OpenGL 4.5 |
Thank you both, I have applied the fix for it now! |
Hello recently i updated my ancient version of ImGUI i was using to current one Tagged as 1.68 in git (commit: 3c15dff). With that i discovered after integrating with my engine. That there is one call which causes OpenGL to cry about unknown enum value (Error 500). Piece of code that is causing this issue is:
glGetIntegerv(GL_CLIP_ORIGIN, (GLint*)&last_clip_origin); // Support for GL 4.5's glClipControl(GL_UPPER_LEFT)
From example integration for OpenGL3. When i remove this everything runs well. Iam using GLFW with already mentioned OpenGL3 on Osx Mojave (Latest update). Also i was not able to find glGetIntegerv documentation allowing enum value GL_CLIP_ORIGIN as parameter so maybe it is even bug.
The text was updated successfully, but these errors were encountered: