Update for rust alpha 1.0

This commit is contained in:
Pierre Krieger 2015-01-09 23:06:14 +01:00
parent 9d7dbf7eb0
commit 469d0eafd1
8 changed files with 11 additions and 15 deletions

View file

@ -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);