Skip to content
This repository was archived by the owner on Apr 3, 2020. It is now read-only.

Commit 27dac39

Browse files
Joone HurRaphael Kubo da Costa
Joone Hur
authored and
Raphael Kubo da Costa
committed
[Temp][oz-wl] Fix crash when switching to console (VT) mode.
Buffer swapping should not be synchronized so that the GPU process is not blocked by waiting for a frame update from Weston. BUG=TC-341 [This is oz-wl's 0007-Fix-crash-when-switching-to-console-VT-mode.patch] It is not clear from ozone-wayland's pull request #300 if this change has been submitted upstream.
1 parent 561c714 commit 27dac39

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ui/gl/gl_context_egl.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ bool GLContextEGL::MakeCurrent(GLSurface* surface) {
120120
return false;
121121
}
122122

123+
#if defined(USE_OZONE)
124+
if (!surface->IsOffscreen())
125+
eglSwapInterval(display_, 0);
126+
#endif
127+
123128
// Set this as soon as the context is current, since we might call into GL.
124129
SetRealGLApi();
125130

0 commit comments

Comments
 (0)