cginternals / globjects

C++ library strictly wrapping OpenGL objects.
https://globjects.org
MIT License
538 stars 59 forks source link

globjects::init(): print warning when overriding glbinding callback #298

Closed mrzzzrm closed 8 years ago

mrzzzrm commented 8 years ago

At the moment globjects::init() registers manualErrorCheckAfter()/manualContextCheck() as glbindings general After/BeforeCallback. The user (e.g.: me) might not expect this. Could you check for callbacks being set in globjects::init() before overriding them and print a warning in case the user has already set a callback?

scheibel commented 8 years ago

Seems reasonable. We will discuss solutions.