Upstream version 10.38.217.0
[platform/framework/web/crosswalk.git] / src / ozone / patches / 0008-Fix-crash-when-switching-to-console-VT-mode.patch
1 From 841609f8245f94194d9e6caabafb4d3878de7051 Mon Sep 17 00:00:00 2001
2 From: Joone Hur <joone.hur@intel.com>
3 Date: Wed, 1 Oct 2014 15:10:54 -0700
4 Subject: [PATCH] Fix crash when switching to console(VT) mode
5
6 Buffer swapping should not be synchronized so that the GPU process
7 is not blocked by waiting for a frame update from Weston.
8
9 Bug: TC-341
10 ---
11  ui/gl/gl_context_egl.cc |    4 ++++
12  1 file changed, 4 insertions(+)
13
14 diff --git a/ui/gl/gl_context_egl.cc b/ui/gl/gl_context_egl.cc
15 index 2554f8c..6cd5d4c 100644
16 --- a/ui/gl/gl_context_egl.cc
17 +++ b/ui/gl/gl_context_egl.cc
18 @@ -112,6 +112,10 @@ bool GLContextEGL::MakeCurrent(GLSurface* surface) {
19      return false;
20    }
21
22 +#if defined(USE_OZONE)
23 +  eglSwapInterval(display_, 0);
24 +#endif
25 +
26    // Set this as soon as the context is current, since we might call into GL.
27    SetRealGLApi();
28
29 --
30 1.7.9.5