From 2e13d9b74e1683a30efc5e66873bf369dfb1e230 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 20 Oct 2023 16:51:09 -0700 Subject: [PATCH] idk about this --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index f2f98c3..3810024 100644 --- a/src/main.rs +++ b/src/main.rs @@ -178,5 +178,8 @@ impl GlobalState { fn main(){ let title=format!("Strafe Client v{}",env!("CARGO_PKG_VERSION")).as_str(); - graphics_context::setup(title).start(); + let context=graphics_context::setup(title); + let global_state=GlobalState::init();//new + global_state.replace_models(&context,default_models()); + context.start(global_state); }