aboutsummaryrefslogtreecommitdiffstats
path: root/examples/support
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-01-09 23:06:14 +0100
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-01-10 08:23:20 +0100
commit469d0eafd1704d5e9a172adfc673708fc76923e9 (patch)
treeeb5d69fa2deb0326a4dc43bddb1f4ff6be8c4051 /examples/support
parent9d7dbf7eb039d5614976a184082163bc97a319c6 (diff)
downloadglutin-469d0eafd1704d5e9a172adfc673708fc76923e9.tar.gz
glutin-469d0eafd1704d5e9a172adfc673708fc76923e9.zip
Update for rust alpha 1.0
Diffstat (limited to 'examples/support')
-rw-r--r--examples/support/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/support/mod.rs b/examples/support/mod.rs
index 7144952..94ef1a7 100644
--- a/examples/support/mod.rs
+++ b/examples/support/mod.rs
@@ -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);