1 From 838bca36fa4872137bbdfed5cd5a0bae705e0bea Mon Sep 17 00:00:00 2001
2 From: Joone Hur <joone.hur@intel.com>
3 Date: Mon, 27 Oct 2014 15:22:48 -0700
4 Subject: [PATCH] Fix crash when switching to console(VT) mode
6 Buffer swapping should not be synchronized so that the GPU process
7 is not blocked by waiting for a frame update from Weston.
11 ui/gl/gl_context_egl.cc | 5 +++++
12 1 file changed, 5 insertions(+)
14 diff --git a/ui/gl/gl_context_egl.cc b/ui/gl/gl_context_egl.cc
15 index 2554f8c..cac515a 100644
16 --- a/ui/gl/gl_context_egl.cc
17 +++ b/ui/gl/gl_context_egl.cc
18 @@ -112,6 +112,11 @@ bool GLContextEGL::MakeCurrent(GLSurface* surface) {
22 +#if defined(USE_OZONE)
23 + if (!surface->IsOffscreen())
24 + eglSwapInterval(display_, 0);
27 // Set this as soon as the context is current, since we might call into GL.