rust/lib-hedgewars-engine/src/lib.rs
changeset 14707 5237b4c44d11
parent 14706 88b0efba77b9
child 14713 cc6ab1e3f7d5
--- a/rust/lib-hedgewars-engine/src/lib.rs	Fri Mar 22 20:37:21 2019 +0300
+++ b/rust/lib-hedgewars-engine/src/lib.rs	Fri Mar 22 20:38:50 2019 +0300
@@ -85,13 +85,15 @@
         let c_name = CString::new(name).unwrap();
         gl_loader(c_name.as_ptr())
     });
-    unsafe { gl::Viewport(0, 0, width as i32, height as i32); }
+    unsafe {
+        gl::Viewport(0, 0, width as i32, height as i32);
+    }
     engine_state.world.create_renderer(width, height);
 }
 
 #[no_mangle]
 pub extern "C" fn render_frame(engine_state: &mut EngineInstance) {
-    //engine_state.render()
+    engine_state.render()
 }
 
 #[no_mangle]