mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-20 14:25:19 +00:00
fix mach-glfw on windows
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user