Skip to content

Commit

Permalink
We can only submit a buffer if we have one already
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanGriffiths committed Jul 12, 2024
1 parent ae96ade commit 0cd183a
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 0cd183a

Please sign in to comment.