Просмотр исходного кода

wallet: bugfix for mac, when starting the app it shows graphical snow, so clear the screen when drawing.

darkfi 1 год назад
Родитель
Сommit
a2e8795e8e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      bin/darkwallet/src/gfx/mod.rs

+ 1 - 1
bin/darkwallet/src/gfx/mod.rs

@@ -791,7 +791,7 @@ impl EventHandler for Stage {
     }
 
     fn draw(&mut self) {
-        self.ctx.begin_default_pass(PassAction::Nothing);
+        self.ctx.begin_default_pass(PassAction::clear_color(0., 0., 0., 1.));
         self.ctx.apply_pipeline(&self.pipeline);
 
         // This will make the top left (0, 0) and the bottom right (1, 1)