??
authoralfadur
Wed, 28 Nov 2018 21:10:18 +0300
changeset 14334 7ae81969330f
parent 14333 918a0f298051
child 14335 97be4f6bf264
??
rust/hwrunner/src/main.rs
--- a/rust/hwrunner/src/main.rs	Wed Nov 28 18:01:21 2018 +0100
+++ b/rust/hwrunner/src/main.rs	Wed Nov 28 21:10:18 2018 +0300
@@ -10,7 +10,8 @@
 use gfx::{
     texture,
     format,
-    Encoder
+    Encoder,
+    Device
 };
 
 use gfx_window_glutin::init_existing;
@@ -62,5 +63,6 @@
         encoder.flush(&mut device);
 
         window.swap_buffers().unwrap();
+        device.cleanup();
     }
 }