platforms/drm: fix init with explicit modifiers
When we're adding the output to the EglGbmBackend pipelines aren't necessarily setup yet and are thus missing the modifier list. As creating the gbm surface immediately is useless anyways, delay that until we need it, where the modifier list is available.
This commit is contained in:
parent
ebaf2e61fc
commit
baebaa9eb4
1 changed files with 2 additions and 8 deletions
|
@ -193,14 +193,8 @@ bool EglGbmBackend::addOutput(DrmAbstractOutput *drmOutput)
|
|||
{
|
||||
Output newOutput;
|
||||
newOutput.output = drmOutput;
|
||||
if (isPrimary()) {
|
||||
if (!resetOutput(newOutput)) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
if (!renderingBackend()->addOutput(drmOutput)) {
|
||||
return false;
|
||||
}
|
||||
if (!isPrimary() && !renderingBackend()->addOutput(drmOutput)) {
|
||||
return false;
|
||||
}
|
||||
m_outputs.insert(drmOutput, newOutput);
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue