From 951904ba1a218247b74a159f16d2400f2974c1ce Mon Sep 17 00:00:00 2001 From: "Pierre-Loup A. Griffais" Date: Sun, 16 Oct 2011 00:28:17 -0700 Subject: [PATCH] kwin-gles: opt-out of flipping The drawing logic of KWin seems to rely on buffer preservation, so we have to let the driver know that it can't flip. REVIEW: 102880 --- scene_opengl_egl.cpp | 2 ++ 1 file changed, 2 insertions(+) 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