Trim text atlas in iced_wgpu after drawing
This will need to change to only trim when all windows have finished drawing once we implement concurrent presentation, since there would be glyph fighting otherwise.
This commit is contained in:
parent
af6b8155c6
commit
76c5306581
2 changed files with 30 additions and 23 deletions
|
|
@ -152,6 +152,9 @@ impl Renderer {
|
|||
self.triangle.end_frame();
|
||||
self.text.end_frame();
|
||||
|
||||
// TODO: Move to runtime!
|
||||
self.engine.text_pipeline.trim();
|
||||
|
||||
#[cfg(any(feature = "svg", feature = "image"))]
|
||||
{
|
||||
self.image.end_frame();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue