Fix index out of range error

This commit is contained in:
Phillip Stephens 2022-02-07 04:21:49 -08:00
parent 72502ec9a2
commit 4c705683bc
Signed by: Antidote
GPG Key ID: F8BEE4C83DACA60D
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ fn app_run(mut delegate: cxx::UniquePtr<ffi::AppDelegate>) {
let window = winit::window::WindowBuilder::new().build(&event_loop).unwrap();
let gpu = initialize_gpu(&window);
let imgui = initialize_imgui(&window, &gpu);
let mut special_keys_pressed : [bool; 27] = [false; 27];
let mut special_keys_pressed : [bool; 512] = [false; 512];
shaders::construct_state(gpu.device.clone(), gpu.queue.clone(), &gpu.config);
let app = App { window: ffi::Window { inner: Box::new(WindowContext { window }) }, gpu, imgui};
unsafe {