diff --git a/build.zig.zon b/build.zig.zon index 09616708b..5c13e4dcf 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -13,8 +13,8 @@ }, .mach_glfw = .{ // mitchellh/mach-glfw - .url = "https://github.com/mitchellh/mach-glfw/archive/0e4bfc8b87ea5074d6f8c37f97dde282e877d0b0.zip", - .hash = "mach_glfw-0.2.0-EJSQm1k9BQA-5D0o_o6MszXdPy-aSlYp4j3HLEafE4Sh", + .url = "https://github.com/mitchellh/mach-glfw/archive/d84bc11b0601cdad71035a0e9cf21572d76aa0d2.zip", + .hash = "mach_glfw-0.2.0-EJSQm2M9BQCiYGTd9VcKjg2DhSD7WT4kS-MfX68ORRT_", .lazy = true, }, .vaxis = .{ diff --git a/pkg/opengl/glad.zig b/pkg/opengl/glad.zig index c9f792a63..79a2e4d6b 100644 --- a/pkg/opengl/glad.zig +++ b/pkg/opengl/glad.zig @@ -25,7 +25,7 @@ pub fn load(getProcAddress: anytype) !c_int { @TypeOf(null) => c.gladLoaderLoadGLContext(&context), // try as-is. If this introduces a compiler error, then add a new case. - else => c.gladLoadGLContext(&context, getProcAddress), + else => c.gladLoadGLContext(&context, @ptrCast(getProcAddress)), }; if (res == 0) return error.GLInitFailed; return res;