Make it possible to disable partial update at runtime

This makes it possible to disable the partial updates and the swap
buffers with damage at runtime.
remotes/origin/work/xdgactivation_v1
Bhushan Shah 5 years ago
parent 70393eec6f
commit 870679e46f
  1. 7
      platformsupport/scenes/opengl/abstract_egl_backend.cpp

@ -185,7 +185,12 @@ void AbstractEglBackend::initBufferAge()
setSupportsBufferAge(true);
}
setSupportsPartialUpdate(hasExtension(QByteArrayLiteral("EGL_KHR_partial_update")));
if (hasExtension(QByteArrayLiteral("EGL_KHR_partial_update"))) {
const QByteArray usePartialUpdate = qgetenv("KWIN_USE_PARTIAL_UPDATE");
if (usePartialUpdate != "0") {
setSupportsPartialUpdate(true);
}
}
setSupportsSwapBuffersWithDamage(hasExtension(QByteArrayLiteral("EGL_EXT_swap_buffers_with_damage")));
}

Loading…
Cancel
Save