rust/lib-hedgewars-engine/src/lib.rs
changeset 14726 19122a329774
parent 14725 12db7e435ea6
child 14727 88b0efba77b9
--- a/rust/lib-hedgewars-engine/src/lib.rs	Fri Mar 22 20:01:47 2019 +0300
+++ b/rust/lib-hedgewars-engine/src/lib.rs	Fri Mar 22 20:26:29 2019 +0300
@@ -10,7 +10,7 @@
     os::raw::{c_char, c_void},
 };
 
-use self::instance::{EngineInstance};
+use self::instance::EngineInstance;
 
 #[repr(C)]
 #[derive(Copy, Clone)]
@@ -81,6 +81,7 @@
     height: u16,
     gl_loader: extern "C" fn(*const c_char) -> *const c_void,
 ) {
+    engine_state.world.create_renderer(width, height);
 }
 
 #[no_mangle]