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
This commit is contained in:
Pierre-Loup A. Griffais 2011-10-16 00:28:17 -07:00 committed by Martin Gräßlin
parent 5971daf1c6
commit 951904ba1a

View file

@ -106,6 +106,8 @@ bool SceneOpenGL::initRenderingContext()
} }
surface = eglCreateWindowSurface(dpy, config, m_overlayWindow->window(), 0); surface = eglCreateWindowSurface(dpy, config, m_overlayWindow->window(), 0);
eglSurfaceAttrib(dpy, surface, EGL_SWAP_BEHAVIOR, EGL_BUFFER_PRESERVED);
const EGLint context_attribs[] = { const EGLint context_attribs[] = {
EGL_CONTEXT_CLIENT_VERSION, 2, EGL_CONTEXT_CLIENT_VERSION, 2,
EGL_NONE EGL_NONE