backends/x11: Present surface even with empty damage
All the other backends present their surface regardless. If the surface isn't presented, the scheduled frame is never finished, and rendering gets stuck indefinitely. This is also consistent with x11 standalone backend which forgoes this check. Signed-off-by: Victoria Fischer <victoria.fischer@mbition.io>
This commit is contained in:
parent
0bd4851326
commit
af99b4e98c
1 changed files with 0 additions and 3 deletions
|
@ -177,9 +177,6 @@ void X11WindowedEglBackend::present(Output *output)
|
||||||
|
|
||||||
void X11WindowedEglBackend::presentSurface(EGLSurface surface, const QRegion &damage, const QRect &screenGeometry)
|
void X11WindowedEglBackend::presentSurface(EGLSurface surface, const QRegion &damage, const QRect &screenGeometry)
|
||||||
{
|
{
|
||||||
if (damage.isEmpty()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
const bool fullRepaint = supportsBufferAge() || (damage == screenGeometry);
|
const bool fullRepaint = supportsBufferAge() || (damage == screenGeometry);
|
||||||
|
|
||||||
if (fullRepaint || !havePostSubBuffer()) {
|
if (fullRepaint || !havePostSubBuffer()) {
|
||||||
|
|
Loading…
Reference in a new issue