Skip to content

Commit

Permalink
#53 leak the Context
Browse files Browse the repository at this point in the history
  • Loading branch information
wtholliday committed Dec 13, 2023
1 parent dd6062f commit ad40240
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/winit_event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ pub fn rui(view: impl View) {
}

let mut vger = Vger::new(device.clone(), queue.clone(), config.format);
let mut cx = Context::new();
let mut cx = Box::leak(Box::new(Context::new()));
let mut mouse_position = LocalPoint::zero();

let mut commands: Vec<CommandInfo> = Vec::new();
Expand Down

0 comments on commit ad40240

Please sign in to comment.