Skip to content

Commit a58ff6f

Browse files
committed
Fix example class destruction
1 parent 4d00f34 commit a58ff6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public final class ImGuiGlfwExample {
5050
private final double[] mousePosY = new double[1];
5151

5252
// Mouse cursors provided by GLFW
53-
private final long[] mouseCursors = new long[ImGuiMouseCursor.COUNT];
53+
private final long[] mouseCursors = new long[ImGuiMouseCursor.COUNT - 1]; // Minus 1, because GLFW 3.4 doesn't provide GLFW_NOT_ALLOWED_CURSOR
5454

5555
// LWJGL3 rendered itself (SHOULD be initialized)
5656
private final ImGuiImplGl3 imGuiGl3 = new ImGuiImplGl3();

0 commit comments

Comments
 (0)