mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 17:26:09 +03:00
fix mach-glfw on windows
This commit is contained in:
@ -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 = .{
|
||||||
|
@ -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;
|
||||||
|
Reference in New Issue
Block a user