Commit 870679e4 authored by Bhushan Shah's avatar Bhushan Shah 📱
Browse files

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.
parent 70393eec
......@@ -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")));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment