From 4c705683bcf7ef57fb5169f330bb94ae5ea91e09 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Mon, 7 Feb 2022 04:21:49 -0800 Subject: [PATCH] Fix index out of range error --- Graphics/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Graphics/src/lib.rs b/Graphics/src/lib.rs index 8a816da59..3094bda54 100644 --- a/Graphics/src/lib.rs +++ b/Graphics/src/lib.rs @@ -154,7 +154,7 @@ fn app_run(mut delegate: cxx::UniquePtr) { 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 {