summaryrefslogtreecommitdiff
path: root/pkg/opengl
diff options
context:
space:
mode:
authorMitchell Hashimoto <m@mitchellh.com>2025-03-12 16:28:52 -0700
committerMitchell Hashimoto <m@mitchellh.com>2025-03-12 16:29:17 -0700
commitb96a5d702bf78e1c9e75fe894de1ea0bf14240ef (patch)
treef86b1bb21743d484113be77c0606e57a6123646c /pkg/opengl
parent66c83648c8f2c31f2b5d385a4dfb28ffca51f4b4 (diff)
fix mach-glfw on windows
Diffstat (limited to 'pkg/opengl')
-rw-r--r--pkg/opengl/glad.zig2
1 files changed, 1 insertions, 1 deletions
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;