mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
Only set max_bpc when full modesetting is being done.
This commit is contained in:
parent
8795dde94e
commit
4ffc97d134
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ static bool atomic_crtc_commit(struct wlr_drm_connector *conn,
|
||||||
atomic_add(&atom, conn->id, conn->props.content_type,
|
atomic_add(&atom, conn->id, conn->props.content_type,
|
||||||
DRM_MODE_CONTENT_TYPE_GRAPHICS);
|
DRM_MODE_CONTENT_TYPE_GRAPHICS);
|
||||||
}
|
}
|
||||||
if (active && conn->props.max_bpc != 0 && conn->max_bpc > 0) {
|
if (modeset && active && conn->props.max_bpc != 0 && conn->max_bpc > 0) {
|
||||||
atomic_add(&atom, conn->id, conn->props.max_bpc, conn->max_bpc);
|
atomic_add(&atom, conn->id, conn->props.max_bpc, conn->max_bpc);
|
||||||
}
|
}
|
||||||
atomic_add(&atom, crtc->id, crtc->props.mode_id, mode_id);
|
atomic_add(&atom, crtc->id, crtc->props.mode_id, mode_id);
|
||||||
|
|
Loading…
Reference in a new issue