mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-25 06:59:42 -05:00
wlr_damage_ring: Fix inverted conditional
This commit is contained in:
parent
62169bf5ac
commit
6287b61025
1 changed files with 1 additions and 1 deletions
|
|
@ -171,7 +171,7 @@ void wlr_damage_ring_rotate_buffer(struct wlr_damage_ring *ring,
|
||||||
// Accumulate damage from old buffers
|
// Accumulate damage from old buffers
|
||||||
for (size_t i = 0; i < WLR_DAMAGE_RING_BUFFERS_LEN; i++) {
|
for (size_t i = 0; i < WLR_DAMAGE_RING_BUFFERS_LEN; i++) {
|
||||||
struct wlr_damage_ring_buffer *rb = &ring->buffers[i];
|
struct wlr_damage_ring_buffer *rb = &ring->buffers[i];
|
||||||
if (rb->seq < ring_buffer->seq) {
|
if (rb->seq > ring_buffer->seq) {
|
||||||
pixman_region32_union(damage, damage, &rb->damage);
|
pixman_region32_union(damage, damage, &rb->damage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue