From a58ff6fc8757d48dcc1a7ffb5f743a1917b8ff43 Mon Sep 17 00:00:00 2001 From: SpaiR Date: Tue, 11 Feb 2020 00:16:10 +0300 Subject: [PATCH] Fix example class destruction --- imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();