aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Stratiienko <roman.o.stratiienko@globallogic.com>2022-01-17 18:44:22 +0200
committerRoman Stratiienko <roman.o.stratiienko@globallogic.com>2022-01-18 10:52:23 +0200
commitad29ee9e5cc0be13efc4dfb4e62c736676bcfd95 (patch)
tree1bb154a8cd7d637bcb45b7ecbb09fea857bcef75
parent903a372231d431254459dfd68f99e76106917e08 (diff)
downloaddrm_hwcomposer-ad29ee9e5cc0be13efc4dfb4e62c736676bcfd95.tar.gz
drm_hwcomposer: Fix missing connector state assignment
It was accidentally removed by my previous commit. Restore it. Fixes: a148f21336ad ("drm_hwcomposer: Rework display modes handling") Signed-off-by: Roman Stratiienko <roman.o.stratiienko@globallogic.com>
-rw-r--r--drm/DrmConnector.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/drm/DrmConnector.cpp b/drm/DrmConnector.cpp
index 32b6d24..bd5277f 100644
--- a/drm/DrmConnector.cpp
+++ b/drm/DrmConnector.cpp
@@ -175,6 +175,8 @@ int DrmConnector::UpdateModes() {
return -ENODEV;
}
+ state_ = c->connection;
+
modes_.clear();
for (int i = 0; i < c->count_modes; ++i) {
bool exists = false;