[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.
This commit is contained in:
Martin Gräßlin 2015-11-13 17:39:16 +01:00
parent d4dbc8c802
commit eb5ff917f6

View file

@ -47,6 +47,9 @@ HwcomposerBackend::HwcomposerBackend(QObject *parent)
HwcomposerBackend::~HwcomposerBackend()
{
if (!m_outputBlank) {
toggleBlankOutput();
}
if (m_device) {
hwc_close_1(m_device);
}