Clear RenderWindow screen

This commit is contained in:
crumblingstatue 2023-04-06 22:14:50 +02:00
parent ae380bb635
commit a3cb228799

View file

@ -243,6 +243,7 @@ impl App {
self.rt.display();
let mut spr = Sprite::with_texture(self.rt.texture());
spr.set_scale((self.scale as f32, self.scale as f32));
self.rw.clear(Color::rgb(40, 10, 70));
self.rw.draw(&spr);
self.sf_egui
.do_frame(|ctx| {