aboutsummaryrefslogtreecommitdiff
path: root/backend/drm/libliftoff.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/drm/libliftoff.c')
-rw-r--r--backend/drm/libliftoff.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/drm/libliftoff.c b/backend/drm/libliftoff.c
index 334a660c..79f83954 100644
--- a/backend/drm/libliftoff.c
+++ b/backend/drm/libliftoff.c
@@ -475,6 +475,10 @@ out:
drmModeAtomicFree(req);
if (ok && !test_only) {
+ if (!crtc->own_mode_id) {
+ crtc->mode_id = 0; // don't try to delete previous master's blobs
+ }
+ crtc->own_mode_id = true;
commit_blob(drm, &crtc->mode_id, mode_id);
commit_blob(drm, &crtc->gamma_lut, gamma_lut);