platforms/drm: add outputs on EglGbmBackend initialisation

BUG: 437761
This commit is contained in:
Xaver Hugl 2021-05-31 13:13:59 +02:00
parent 33bb146861
commit 7bf79090cf

View file

@ -147,7 +147,13 @@ bool EglGbmBackend::initRenderingContext()
{
initBufferConfigs();
if (isPrimary()) {
return createContext() && makeCurrent();
if (!createContext() || !makeCurrent()) {
return false;
}
}
const auto outputs = m_gpu->outputs();
for (const auto &output : outputs) {
addOutput(output);
}
return true;
}