diff --git a/scene_opengl_egl.cpp b/scene_opengl_egl.cpp index e21b6997c5..c3fa845491 100644 --- a/scene_opengl_egl.cpp +++ b/scene_opengl_egl.cpp @@ -106,6 +106,8 @@ bool SceneOpenGL::initRenderingContext() } surface = eglCreateWindowSurface(dpy, config, m_overlayWindow->window(), 0); + eglSurfaceAttrib(dpy, surface, EGL_SWAP_BEHAVIOR, EGL_BUFFER_PRESERVED); + const EGLint context_attribs[] = { EGL_CONTEXT_CLIENT_VERSION, 2, EGL_NONE