platforms/drm: don't take the rotation property for granted
Should fix the crash on the pinephone
This commit is contained in:
parent
3c28a78956
commit
2977ae8e37
1 changed files with 5 additions and 1 deletions
|
@ -140,7 +140,11 @@ void DrmPlane::setBuffer(DrmBuffer *buffer)
|
|||
|
||||
bool DrmPlane::needsModeset() const
|
||||
{
|
||||
return getProp(PropertyIndex::CrtcId)->needsCommit() || getProp(PropertyIndex::Rotation)->needsCommit();
|
||||
auto rotation = getProp(PropertyIndex::Rotation);
|
||||
if (rotation && rotation->needsCommit()) {
|
||||
return true;
|
||||
}
|
||||
return getProp(PropertyIndex::CrtcId)->needsCommit();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue