From 57833f2b2d3424a52b5102fa81d17e2e62a1ca9e Mon Sep 17 00:00:00 2001 From: Drakulix Date: Thu, 15 Jun 2017 13:34:01 +0200 Subject: [PATCH] Bugfix surface_attribute termination --- src/backend/graphics/egl.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 };