-
Notifications
You must be signed in to change notification settings - Fork 114
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
is_loaded does not work on X11 (Linux) platforms #492
Comments
After rebooting into windows, that example outputs:
as expected, because Well. On my system, it does. https://www.khronos.org/opengl/wiki/Load_OpenGL_Functions states "While the MSDN documentation says that ✨🌈 Thanks OpenGL! 🌈✨ |
arrrgh - any idea how we might be able to get around this? |
Or are we doomed? 😭 |
My only thought is if the function data file (that I assume everything is generated from) includes extensions required - then it can check against That's a lot of work, though, so shrug |
The world is a ball of sadness, and
glXGetProcAddress
never returns null. See point 3 in this page: https://dri.freedesktop.org/wiki/glXGetProcAddressNeverReturnsNULL/As far as I can tell,
gl::__::is_loaded()
checks if the loading function returned null or not. As the X11 impl never returns null...is_loaded
doesn't work as intended :'(To be honest, I don't really care if this is somehow fixed or not (who actually uses
is_loaded
anyway), I'd be okay with a note on the readme or docs.rs front page saying "be careful with X11 andis_loaded
, it probably doesn't do what you want".Loading every function with the string
"wow, this isn't the right string"
returns some valid pointers 🌈Non-minimized context that this bug report is from: https://twitter.com/khyperia/status/1133584256834215937
The text was updated successfully, but these errors were encountered: