update wgpu, winit and wgpu_glyph

This commit is contained in:
Anton-4 2022-02-12 13:55:21 +01:00
parent 59a0c47038
commit 3346eb4f2c
No known key found for this signature in database
GPG key ID: C954D6E0F9C0ABFD
5 changed files with 93 additions and 308 deletions

View file

@ -5,7 +5,7 @@ use crate::{
lowlevel::ortho::update_ortho_buffer,
lowlevel::pipelines,
primitives::rect::Rect,
primitives::text::{build_glyph_brush, owned_section_from_text, Text},
primitives::text::{build_glyph_brush, Text},
},
rects_and_texts::RectsAndTexts,
};
@ -30,7 +30,6 @@ use winit::{
fn run_event_loop(title: &str, rects_and_texts: RectsAndTexts) -> Result<(), Box<dyn Error>> {
// Open window and create a surface
let mut event_loop = winit::event_loop::EventLoop::new();
let mut needs_repaint = true;
let window = winit::window::WindowBuilder::new()
.with_inner_size(PhysicalSize::new(1900.0, 1000.0))