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
kgl-opengl on macOS creates 2.1 context instead of 4.1 context by default #20
Comments
kgl-opengl can load functions from 3.2. I've tested this on at least three macs. Are you experiencing any specific issues with function loading? |
It can load the functions, but the context version returned from Relevant stack overflow link: https://stackoverflow.com/a/26982694 |
Update after a bit more research:
Calling |
I'll try and also look into this but without a Mac it'll take me a while. It should just mean updating the |
This is actually documented behavior of GLFW on macOS (link) Might be helpful to link to the GLFW FAQ in the README so issue reports like this don't happen again 😅 EDIT: Forgot to mention that I tested the instructions in the FAQ and they successfully create a 4.1 context (although my textures don't seem to load, but that's a different thing entirely because of the API differences) |
kgl-opengl currently can only create an OpenGL context up version 2.1, because Apple. Platform lib only supports up to 3.2+ (no 4), but there's nothing to be done about that. Calling gl functions from 4+ throws NullPointerException because the function loader can't find them.
The text was updated successfully, but these errors were encountered: