Bugfix surface_attribute termination

This commit is contained in:
Drakulix 2017-06-15 13:34:01 +02:00
parent 40e49ad7e9
commit 57833f2b2d
1 changed files with 2 additions and 1 deletions

View File

@ -521,7 +521,7 @@ impl EGLContext {
debug!(log, "EGL context successfully created");
let surface_attributes = {
let mut out: Vec<c_int> = Vec::with_capacity(2);
let mut out: Vec<c_int> = Vec::with_capacity(3);
match reqs.double_buffer {
Some(true) => {
@ -537,6 +537,7 @@ impl EGLContext {
None => {}
}
out.push(ffi::egl::NONE as i32);
out
};