mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-23 02:19:49 +01:00
backend/drm: remove unnecessary wlr_drm_fb.wlr_buf check
We don't need this check, wlr_buf is guaranteed not to be NULL.
This commit is contained in:
parent
b7dc4f2990
commit
dc61f471da
1 changed files with 1 additions and 1 deletions
|
@ -324,7 +324,7 @@ static bool drm_connector_attach_render(struct wlr_output *output,
|
|||
static void drm_plane_set_committed(struct wlr_drm_plane *plane) {
|
||||
drm_fb_move(&plane->queued_fb, &plane->pending_fb);
|
||||
|
||||
if (plane->queued_fb && plane->queued_fb->wlr_buf) {
|
||||
if (plane->queued_fb) {
|
||||
wlr_swapchain_set_buffer_submitted(plane->surf.swapchain,
|
||||
plane->queued_fb->wlr_buf);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue