aboutsummaryrefslogtreecommitdiff
path: root/games/rstnode/rst-client/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'games/rstnode/rst-client/src/main.rs')
-rw-r--r--games/rstnode/rst-client/src/main.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/games/rstnode/rst-client/src/main.rs b/games/rstnode/rst-client/src/main.rs
index aa86de26c952..a6ba4a59cdc1 100644
--- a/games/rstnode/rst-client/src/main.rs
+++ b/games/rstnode/rst-client/src/main.rs
@@ -14,6 +14,7 @@ mod input;
mod log;
mod settings;
mod state;
+mod viewport;
mod window;
#[allow(unused)]
@@ -36,7 +37,13 @@ fn main() {
// Load assets tree
let assets =
assets::load_tree(window.ctx(), &settings).unwrap_or_else(|e| fatal!("LoadError: {}!", e));
- let state = ClientState::new(settings, assets);
+ // Create the client state
+ let mut state = ClientState::new(settings, assets);
+
+ // Initialise the viewport first!
+ state.viewport().init(window.ctx());
+
+ // Window goes brrrr
window.run(state)
}