You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm writing app with rust and opengl, done much work with matrices, but it isn't works. After some tests, I found, that location is -1. but shader's code contains used name. It isn't work when name is &str and used as name.as_ptr().cast() for casting to *const i8 type.
Activity
Dav1dde commentedon Jun 13, 2023
Strings without length in the API like
glGetUniformLocationneed to be 0-terminated, in Rust you could/should useCString