aboutsummaryrefslogtreecommitdiff
path: root/examples/render-quad/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/render-quad/src')
-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