mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
opengl: support loading global gl functions
This commit is contained in:
@ -23,6 +23,10 @@ pub fn load(getProcAddress: anytype) !c_int {
|
|||||||
getProcAddress,
|
getProcAddress,
|
||||||
)),
|
)),
|
||||||
|
|
||||||
|
// null proc address means that we are just loading the globally
|
||||||
|
// pointed gl functions
|
||||||
|
@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, getProcAddress),
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user