Bugfix surface_attribute termination
This commit is contained in:
parent
40e49ad7e9
commit
57833f2b2d
|
@ -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
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue