diff --git a/src/plugins/platforms/drm/drm_object_plane.cpp b/src/plugins/platforms/drm/drm_object_plane.cpp index d6e2baf3c3..dbb3bb1c17 100644 --- a/src/plugins/platforms/drm/drm_object_plane.cpp +++ b/src/plugins/platforms/drm/drm_object_plane.cpp @@ -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(); } }