mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 05:10:03 -04:00
Update for rust alpha 1.0
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user