From 4c22106ecb0ec7d350a4eeb0c3c975448fd29fda Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 2 Jun 2023 02:02:24 -0700 Subject: [PATCH] glfw: fix setIcon pointer constness Signed-off-by: Stephen Gutekanst --- libs/glfw/src/Window.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/glfw/src/Window.zig b/libs/glfw/src/Window.zig index a2bb9eb7..ac92a3df 100644 --- a/libs/glfw/src/Window.zig +++ b/libs/glfw/src/Window.zig @@ -483,7 +483,7 @@ pub inline fn setTitle(self: Window, title: [*:0]const u8) void { /// @thread_safety This function must only be called from the main thread. /// /// see also: window_icon -pub inline fn setIcon(self: Window, allocator: mem.Allocator, images: ?[]Image) mem.Allocator.Error!void { +pub inline fn setIcon(self: Window, allocator: mem.Allocator, images: ?[]const Image) mem.Allocator.Error!void { internal_debug.assertInitialized(); if (images) |im| { const tmp = try allocator.alloc(c.GLFWimage, im.len);