--- 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]