glfw: fix setIcon pointer constness

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2023-06-02 02:02:24 -07:00
parent ed2185f7e4
commit 4ed407c983

View file

@ -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. /// @thread_safety This function must only be called from the main thread.
/// ///
/// see also: window_icon /// 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(); internal_debug.assertInitialized();
if (images) |im| { if (images) |im| {
const tmp = try allocator.alloc(c.GLFWimage, im.len); const tmp = try allocator.alloc(c.GLFWimage, im.len);