wlr_scene: Remove duplicate buffer check when submitting a new buffer

wlr_buffer allows mutation during its lifetime. This happens for
wlr_client_buffer which fixes damage tracking issues.
This commit is contained in:
Alexander Orzechowski 2022-11-11 10:22:26 -05:00 committed by Simon Ser
parent 84e727daae
commit c58ad0f171

View file

@ -566,10 +566,6 @@ void wlr_scene_buffer_set_buffer_with_damage(struct wlr_scene_buffer *scene_buff
// coordinates. // coordinates.
assert(buffer || !damage); assert(buffer || !damage);
if (buffer == scene_buffer->buffer) {
return;
}
bool update = false; bool update = false;
wlr_buffer_unlock(scene_buffer->buffer); wlr_buffer_unlock(scene_buffer->buffer);