1
0
Fork 0
forked from wry/wry

damage: add sync point before visualizing damage

This commit is contained in:
Julian Orth 2025-02-27 21:04:31 +01:00
parent d7d0cbf9e2
commit dd332be995

View file

@ -2,6 +2,7 @@ use {
crate::{
async_engine::AsyncEngine,
fixed::Fixed,
gfx_api::GfxApiOpt,
ifs::wl_output::WlOutputGlobal,
rect::{Rect, Region},
renderer::renderer_base::RendererBase,
@ -160,6 +161,7 @@ impl DamageVisualizer {
let dx = -cursor_rect.x1();
let dy = -cursor_rect.y1();
let decay_millis = decay.as_millis() as u64 as f32;
renderer.ops.push(GfxApiOpt::Sync);
for entry in entries.iter().rev() {
let region = Region::new(entry.rect);
let region = region.subtract(&used);