1
0
Fork 0
forked from wry/wry

render: sync before rendering single-pixel buffer

This commit is contained in:
Julian Orth 2024-04-02 10:22:32 +02:00
parent d0f124a6ba
commit aaed003ec8

View file

@ -405,6 +405,7 @@ impl Renderer<'_> {
Some(bounds) => rect.intersect(*bounds),
};
if !rect.is_empty() {
self.base.ops.push(GfxApiOpt::Sync);
self.base.fill_boxes(&[rect], color);
}
}