mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
backend/drm: don't log errno on plane_get_next_fb failure
errno isn't guaranteed to be set after a plane_get_next_fb failure, so we were printing garbage.
This commit is contained in:
parent
1458f7d974
commit
5773794baf
1 changed files with 1 additions and 2 deletions
|
@ -77,8 +77,7 @@ static bool legacy_crtc_commit(struct wlr_drm_backend *drm,
|
||||||
if (cursor != NULL && drm_connector_is_cursor_visible(conn)) {
|
if (cursor != NULL && drm_connector_is_cursor_visible(conn)) {
|
||||||
struct wlr_drm_fb *cursor_fb = plane_get_next_fb(cursor);
|
struct wlr_drm_fb *cursor_fb = plane_get_next_fb(cursor);
|
||||||
if (!cursor_fb->bo) {
|
if (!cursor_fb->bo) {
|
||||||
wlr_drm_conn_log_errno(conn, WLR_DEBUG,
|
wlr_drm_conn_log(conn, WLR_DEBUG, "Failed to acquire cursor FB");
|
||||||
"Failed to acquire cursor FB");
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue