From eb5ff917f657c2683624ec87dc473120694d1752 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 13 Nov 2015 17:39:16 +0100 Subject: [PATCH] [backends/hwcomposer] Blank output on tear down This gives a better tear down experience as it goes to black instead of showing outdated screen and also it disables vsync which fixes a crash on teardown. --- backends/hwcomposer/hwcomposer_backend.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backends/hwcomposer/hwcomposer_backend.cpp b/backends/hwcomposer/hwcomposer_backend.cpp index fa6fbb1f01..a4c83d8346 100644 --- a/backends/hwcomposer/hwcomposer_backend.cpp +++ b/backends/hwcomposer/hwcomposer_backend.cpp @@ -47,6 +47,9 @@ HwcomposerBackend::HwcomposerBackend(QObject *parent) HwcomposerBackend::~HwcomposerBackend() { + if (!m_outputBlank) { + toggleBlankOutput(); + } if (m_device) { hwc_close_1(m_device); }