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:
parent
5971daf1c6
commit
951904ba1a
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue