diff --git a/imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java b/imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java index f50742d..03ef41d 100644 --- a/imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java +++ b/imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java @@ -50,7 +50,7 @@ public final class ImGuiGlfwExample { private final double[] mousePosY = new double[1]; // Mouse cursors provided by GLFW - private final long[] mouseCursors = new long[ImGuiMouseCursor.COUNT]; + private final long[] mouseCursors = new long[ImGuiMouseCursor.COUNT - 1]; // Minus 1, because GLFW 3.4 doesn't provide GLFW_NOT_ALLOWED_CURSOR // LWJGL3 rendered itself (SHOULD be initialized) private final ImGuiImplGl3 imGuiGl3 = new ImGuiImplGl3();