aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Loup A. Griffais <pgriffais@nvidia.com>2011-10-16 07:28:17 (GMT)
committerMartin Gräßlin <mgraesslin@kde.org>2011-10-26 17:23:46 (GMT)
commitf0d8fce3450935c773dc49f70a232f53436eef36 (patch)
tree880ea2b45bc0e9d1978f0f40497b0e5a32fe6cda
parent4085ebdc2d9c849f27c812bf180aa9adb42f2901 (diff)
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
-rw-r--r--kwin/scene_opengl_egl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/kwin/scene_opengl_egl.cpp b/kwin/scene_opengl_egl.cpp
index 7fa2972..0b902ef 100644
--- a/kwin/scene_opengl_egl.cpp
+++ b/kwin/scene_opengl_egl.cpp
@@ -106,6 +106,8 @@ bool SceneOpenGL::initRenderingContext()
}
surface = eglCreateWindowSurface(dpy, config, wspace->overlayWindow(), 0);
+ eglSurfaceAttrib(dpy, surface, EGL_SWAP_BEHAVIOR, EGL_BUFFER_PRESERVED);
+
const EGLint context_attribs[] = {
EGL_CONTEXT_CLIENT_VERSION, 2,
EGL_NONE