Use new Layer in draw_overlay

This commit is contained in:
Héctor Ramón Jiménez 2019-11-05 03:49:10 +01:00
parent b68ac3aa47
commit 40e9a2f6ae

View file

@ -274,7 +274,7 @@ impl Renderer {
layers: &mut Vec<Layer<'a>>,
) {
let first = layers.first().unwrap();
let mut overlay = Layer::new(first.bounds, 0);
let mut overlay = Layer::new(first.bounds, Vector::new(0, 0));
let font_id =
wgpu_glyph::FontId(self.glyph_brush.borrow().fonts().len() - 1);