aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index dd3e9c71..f797dd5a 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -609,7 +609,7 @@ static void drm_connector_rollback_render(struct wlr_output *output) {
size_t drm_crtc_get_gamma_lut_size(struct wlr_drm_backend *drm,
struct wlr_drm_crtc *crtc) {
- if (crtc->props.gamma_lut_size == 0) {
+ if (crtc->props.gamma_lut_size == 0 || drm->iface == &legacy_iface) {
return (size_t)crtc->legacy_crtc->gamma_size;
}