1
0
Fork 0
forked from wry/wry

renderer: add missing sync ops

This commit is contained in:
Julian Orth 2025-12-04 17:12:14 +01:00
parent db7520bffa
commit 1189827b8b
3 changed files with 12 additions and 7 deletions

View file

@ -3,7 +3,6 @@ use {
async_engine::AsyncEngine,
cmm::cmm_manager::ColorManager,
fixed::Fixed,
gfx_api::GfxApiOpt,
ifs::wl_output::WlOutputGlobal,
rect::{Rect, Region},
renderer::renderer_base::RendererBase,
@ -164,7 +163,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);
renderer.sync();
let srgb = &self.color_manager.srgb_gamma22().linear;
for entry in entries.iter().rev() {
let region = Region::new(entry.rect);