aboutsummaryrefslogtreecommitdiff
path: root/examples/render-quad/src/main.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 17:44:20 +0100
committertcmal <me@aria.rip>2024-08-25 17:44:20 +0100
commit5dc6c64394d1e0a09c882b88ecb2b8f04f9e5b22 (patch)
tree5e8f5364bf4ffa8265c98dc84a52f887b175ce30 /examples/render-quad/src/main.rs
parent19b5dfb37ad45eaff18fb14e9134d1386cb696e9 (diff)
refactor(examples): improvements to render-bsp example
Diffstat (limited to 'examples/render-quad/src/main.rs')
-rw-r--r--examples/render-quad/src/main.rs3
1 files changed, 1 insertions, 2 deletions
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