What gl::GetUniformLocation
excepts (rust)
#430
Answered
by
Dav1dde
stalker57241
asked this question in
Q&A
-
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 Where is readable docs? May anyone tell me? |
Beta Was this translation helpful? Give feedback.
Answered by
Dav1dde
Jun 13, 2023
Replies: 1 comment 1 reply
-
Strings without length in the API like |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
stalker57241
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Strings without length in the API like
glGetUniformLocation
need to be 0-terminated, in Rust you could/should useCString