-
Notifications
You must be signed in to change notification settings - Fork 453
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
Defined GLAD_GL_IMPLEMENTATION to GLFW example #464
Conversation
Also added .vscode to .gitignore. If this is an issue please let me know so I can remove it before the pull.
Sorry, finger slipped |
Thanks for the patch, looks good, also adding vscode is fine! I am a bit surprised though, glad should return |
Hi @Dav1dde, To my knowledge and experience using GLAD for a couple years, I assumed the Also, I don't have merge permissions, so if the patch is sufficient would you mind merging when you have the chance? Thank you, |
Oh, I just understood what you meant. If I get the chance I'll look into why glad is being set when the version is not set. It could be that the loader runs anyway whilst the version checker doesn't? I'll take a gander when I have the chance. Thanks for the insight. |
Hi, Quick follow up: I updated the fork, because Thank you for reading. |
This is not necessary as long as you include glad before glfw. So I'd not include it in the example because it is not necessary.
It is, the previous version used
I will, but it might be open for a few days, I want to take the opportunity to figure out why glad returns |
Hi @Dav1dde, I see. Thank you for the follow up. I was trying to reproduce the return 1 issue but I seemed to have failed to documented my reproduction steps. I used the headeronly library when troubleshooting and I'm using it now, but when I undefine Also, I checked Thank you. |
Thanks for the PR! I had a quick look again my best guess is somehow maybe it linked with an older version of glad, didn't have more time to investigate yet. |
Good morning @Dav1dde, I'm thinking the same thing must have happened on my end, as well. I could not reproduce the issue, but in trying to do so I actually learned a lot about the library :) Thanks for keeping up with this branch/issue |
Patch for issue #463 which can cause portability issues in the future by defining
GLAD_GL_IMPLEMENTATION
before glad import in GLFW example.This patch does not stress nor attempt to fix any issues with the library itself, but edits the example in question so consumers don’t make the mistake of not defining the required macro.
Also added .vscode to .gitignore. If this is
an issue please let me know so I can remove
it before the pull.
Thank you @Dav1dde for helping me troubleshoot the version checking issue.