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

@@ -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;