aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Partouche <DavidPartouche@users.noreply.github.com>2014-11-26 14:41:30 +0100
committerDavid Partouche <DavidPartouche@users.noreply.github.com>2014-11-26 14:41:30 +0100
commit3ec343d12c16b19bc968404f8ccb04ae94d6425e (patch)
treee7928c6e4ee32aab226864422cc16ffeaf616b75 /src
parent429874ed811de1d8442e1a24c09df66ee77148a3 (diff)
parentadc6c00aa8af92a954d30a2ad5e011791cbac526 (diff)
downloadglutin-3ec343d12c16b19bc968404f8ccb04ae94d6425e.tar.gz
glutin-3ec343d12c16b19bc968404f8ccb04ae94d6425e.zip
Merge pull request #141 from ozkriff/master
android: Updated for rust 395901393 2014-11-24 00:46:30 +0000
Diffstat (limited to 'src')
-rw-r--r--src/android/mod.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/android/mod.rs b/src/android/mod.rs
index 4e24c98..341187f 100644
--- a/src/android/mod.rs
+++ b/src/android/mod.rs
@@ -104,12 +104,12 @@ impl Window {
let config = unsafe {
let mut attribute_list = vec!();
if use_gles2 {
- attribute_list.push_all([ffi::egl::RENDERABLE_TYPE as i32,
+ attribute_list.push_all(&[ffi::egl::RENDERABLE_TYPE as i32,
ffi::egl::OPENGL_ES2_BIT as i32]);
}
- attribute_list.push_all([ffi::egl::RED_SIZE as i32, 1]);
- attribute_list.push_all([ffi::egl::GREEN_SIZE as i32, 1]);
- attribute_list.push_all([ffi::egl::BLUE_SIZE as i32, 1]);
+ attribute_list.push_all(&[ffi::egl::RED_SIZE as i32, 1]);
+ attribute_list.push_all(&[ffi::egl::GREEN_SIZE as i32, 1]);
+ attribute_list.push_all(&[ffi::egl::BLUE_SIZE as i32, 1]);
attribute_list.push(ffi::egl::NONE as i32);
let mut num_config: ffi::egl::types::EGLint = mem::uninitialized();
@@ -132,7 +132,7 @@ impl Window {
let context = unsafe {
let mut context_attributes = vec!();
if use_gles2 {
- context_attributes.push_all([ffi::egl::CONTEXT_CLIENT_VERSION as i32, 2]);
+ context_attributes.push_all(&[ffi::egl::CONTEXT_CLIENT_VERSION as i32, 2]);
}
context_attributes.push(ffi::egl::NONE as i32);