fix mach-glfw on windows

This commit is contained in:
Mitchell Hashimoto
2025-03-12 16:28:52 -07:00
parent 66c83648c8
commit b96a5d702b
2 changed files with 3 additions and 3 deletions

View File

@ -13,8 +13,8 @@
}, },
.mach_glfw = .{ .mach_glfw = .{
// mitchellh/mach-glfw // mitchellh/mach-glfw
.url = "https://github.com/mitchellh/mach-glfw/archive/0e4bfc8b87ea5074d6f8c37f97dde282e877d0b0.zip", .url = "https://github.com/mitchellh/mach-glfw/archive/d84bc11b0601cdad71035a0e9cf21572d76aa0d2.zip",
.hash = "mach_glfw-0.2.0-EJSQm1k9BQA-5D0o_o6MszXdPy-aSlYp4j3HLEafE4Sh", .hash = "mach_glfw-0.2.0-EJSQm2M9BQCiYGTd9VcKjg2DhSD7WT4kS-MfX68ORRT_",
.lazy = true, .lazy = true,
}, },
.vaxis = .{ .vaxis = .{

View File

@ -25,7 +25,7 @@ pub fn load(getProcAddress: anytype) !c_int {
@TypeOf(null) => c.gladLoaderLoadGLContext(&context), @TypeOf(null) => c.gladLoaderLoadGLContext(&context),
// try as-is. If this introduces a compiler error, then add a new case. // 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; if (res == 0) return error.GLInitFailed;
return res; return res;