diff --git a/src/backend/graphics/egl.rs b/src/backend/graphics/egl.rs index 6fe3d0a..457564d 100644 --- a/src/backend/graphics/egl.rs +++ b/src/backend/graphics/egl.rs @@ -521,7 +521,7 @@ impl EGLContext { debug!(log, "EGL context successfully created"); let surface_attributes = { - let mut out: Vec = Vec::with_capacity(2); + let mut out: Vec = 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 };