Add aarch64-unknown-linux-gnu support
* Adding dependencies * Replacing `i8` with `c_char` ot `_` (since `c_char` can be unsigned on some platforms, aarch64 is one of them)
This commit is contained in:
parent
eb8611f272
commit
07c8154cb7
3 changed files with 9 additions and 3 deletions
|
|
@ -22,7 +22,7 @@ pub fn load(window: &glutin::Window) -> Context {
|
|||
let gl = gl::Gl::load(window);
|
||||
|
||||
let version = unsafe {
|
||||
let data = CStr::from_ptr(gl.GetString(gl::VERSION) as *const i8).to_bytes().to_vec();
|
||||
let data = CStr::from_ptr(gl.GetString(gl::VERSION) as *const _).to_bytes().to_vec();
|
||||
String::from_utf8(data).unwrap()
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue