Update for rust alpha 1.0
This commit is contained in:
parent
9d7dbf7eb0
commit
469d0eafd1
8 changed files with 11 additions and 15 deletions
|
|
@ -22,7 +22,7 @@ pub fn load(window: &glutin::Window) -> Context {
|
|||
|
||||
let version = unsafe {
|
||||
use std::ffi;
|
||||
ffi::c_str_to_bytes(&(gl.GetString(gl::VERSION) as *const i8)).to_string()
|
||||
String::from_utf8(ffi::c_str_to_bytes(&(gl.GetString(gl::VERSION) as *const i8)).to_vec()).unwrap()
|
||||
};
|
||||
|
||||
println!("OpenGL version {}", version);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue