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.
Alexander Orzechowski 2 years ago committed by Simon Ser
parent 84e727daae
commit c58ad0f171

@ -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);

Loading…
Cancel
Save