Skip to content

Commit 98fb021

Browse files
lockSurface: set eglSwapInterval to 0 (#1015)
Co-authored-by: tmbull <tristan.m.bull@gmail.com>
1 parent c86727a commit 98fb021

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/core/LockSurface.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ void CSessionLockSurface::configure(const Vector2D& size_, uint32_t serial_) {
105105
readyForFrame = false;
106106
return;
107107
}
108+
109+
// When wayland frame callbacks are used directly, eglSwapInterval should be 0,
110+
// otherwise eglSwapBuffers may block under some circumstances.
111+
g_pEGL->makeCurrent(eglSurface);
112+
eglSwapInterval(g_pEGL->eglDisplay, 0);
108113
}
109114

110115
if (readyForFrame && !(SAMESIZE && SAMESCALE)) {

0 commit comments

Comments
 (0)