Skip to content

Commit

Permalink
We can only submit a buffer if we have one already (#3477)
Browse files Browse the repository at this point in the history
Fixes: #3475
  • Loading branch information
mattkae authored Jul 12, 2024
2 parents c261fbf + 0cd183a commit 5557be6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/frontend_wayland/wl_surface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ void mf::WlSurface::commit(WlSurfaceState const& state)
frame_callback_executor->spawn(std::move(executor_send_frame_callbacks));
}

if (needs_buffer_submission)
if (needs_buffer_submission && current_buffer)
{
geom::Size logical_size;
geom::RectangleD src_sample;
Expand Down

0 comments on commit 5557be6

Please sign in to comment.