Skip to content
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

glad_set_pre_callback/glad_set_post_callback in "release" #132

Open
zajo opened this issue Feb 24, 2018 · 0 comments
Open

glad_set_pre_callback/glad_set_post_callback in "release" #132

zajo opened this issue Feb 24, 2018 · 0 comments

Comments

@zajo
Copy link

zajo commented Feb 24, 2018

In some applications it might be beneficial to use pre/post callbacks even in non-debug builds. I understand why the debug callbacks take the gl function arguments as ... (and they should), but in release this might affect performance. I wonder if it would be better to add an option to the generator to exclude passing the arguments when calling the callbacks? I think the signature should remain the same (with the ...), but len_args could be passed as -1?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants