summaryrefslogtreecommitdiff
path: root/webhogg/wasm/src/graphics.rs
diff options
context:
space:
mode:
authornatrixaeria <janng@gmx.de>2019-06-14 17:20:01 +0200
committernatrixaeria <janng@gmx.de>2019-06-14 17:20:01 +0200
commit438825a7ce98a0cd455ff0adebd6d3cf8d3209be (patch)
tree30c4290562910c27c3a11a05344c6b236be62fbf /webhogg/wasm/src/graphics.rs
parent4fd207e78452a9e282ef65fc9c3eaf8b19115956 (diff)
Draw a rectangle
Diffstat (limited to 'webhogg/wasm/src/graphics.rs')
-rw-r--r--webhogg/wasm/src/graphics.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/webhogg/wasm/src/graphics.rs b/webhogg/wasm/src/graphics.rs
index c4902ae..219c652 100644
--- a/webhogg/wasm/src/graphics.rs
+++ b/webhogg/wasm/src/graphics.rs
@@ -10,7 +10,10 @@ pub fn start_graphics(canvas: web_sys::OffscreenCanvas) {
match context::graphics::GraphicsContext::from_canvas(canvas) {
Ok(ctx) => context::set_graphics(ctx),
- Err(e) => error!("graphics {}", e)
+ Err(e) => {
+ error!("graphics {}", e);
+ panic!()
+ }
}
}