-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
external: Replace glbinding by glad #527
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking this work, it's pretty heavy and time-consuming.
I think you need to run clang-format. I notice there are some places where tabs mixed in
Will leave the ideas of debug GLAD to another devs. Maybe discuss here or on Discord |
Is this better than SDL_opengl.h? The reason to use glbinding was for profiling and error checking, which I expect glad doesn’t do. Also, I’m confused why all the GLenums changed to GLints. That didn’t seem right. |
@pent0 My bad, I forgot to run clang-format before to push. It should be ok now. |
The error checks should definitely be kept for Debug mode. |
@petmac glTexParameteriv's third argument type is
I can revert the code related to the GLenums to do something like that if you prefer:
|
Close #489
Warning: the release build of glad doesn't include pre/post callbacks so I didn't replace the before_callback/after_callback functions by a "glad" equivalent. I am not sure if I should use the debug build to have these callbacks, specially if it can affect performance as mentioned in Dav1dde/glad#132. Any advice?