aboutsummaryrefslogtreecommitdiff
path: root/backend/drm/atomic.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/drm/atomic.c')
-rw-r--r--backend/drm/atomic.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/drm/atomic.c b/backend/drm/atomic.c
index bbbd064e..c190a9fd 100644
--- a/backend/drm/atomic.c
+++ b/backend/drm/atomic.c
@@ -379,6 +379,10 @@ static bool atomic_crtc_commit(struct wlr_drm_connector *conn,
atomic_finish(&atom);
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);