From 5dc6c64394d1e0a09c882b88ecb2b8f04f9e5b22 Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 17:44:20 +0100 Subject: refactor(examples): improvements to render-bsp example --- examples/render-quad/src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'examples/render-quad/src/main.rs') diff --git a/examples/render-quad/src/main.rs b/examples/render-quad/src/main.rs index f04fca7..ea22b18 100644 --- a/examples/render-quad/src/main.rs +++ b/examples/render-quad/src/main.rs @@ -20,7 +20,6 @@ extern crate stockton_bsp; extern crate stockton_render; extern crate winit; extern crate simple_logger; -extern crate rand; extern crate image; use stockton_render::draw::{RenderingContext, UVPoint}; @@ -118,7 +117,7 @@ fn main() { window.request_redraw() }, Event::RedrawRequested(_) => { - if let Err(err) = ctx.draw_vertices() { + if let Err(_) = ctx.draw_vertices() { unsafe {ctx.handle_surface_change().unwrap()}; // If it fails twice, then panic -- cgit v1.2.3