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 be55c8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/frontend_wayland/wl_surface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,15 +410,15 @@ void mf::WlSurface::commit(WlSurfaceState const& state)
current_buffer->id().as_value());
}

needs_buffer_submission = true;
needs_buffer_submission = current_buffer;
}
}
else
{
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 be55c8f

Please sign in to comment.