mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-04-20 00:18:53 +03:00
11 lines
270 B
Zig
11 lines
270 B
Zig
const glslang = @import("main.zig");
|
|
|
|
var initialized: bool = false;
|
|
|
|
/// Call this function before any other tests in this package to ensure that
|
|
/// the glslang library is initialized.
|
|
pub fn ensureInit() !void {
|
|
if (initialized) return;
|
|
try glslang.init();
|
|
}
|