??
authoralfadur
Wed, 28 Nov 2018 21:10:18 +0300
changeset 14355 7ae81969330f
parent 14354 918a0f298051
child 14356 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();
     }
 }