mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-02 16:08:39 +00:00
Update Zig (#164)
* update zig * pkg/fontconfig: clean up @as * pkg/freetype,harfbuzz: clean up @as * pkg/imgui: clean up @as * pkg/macos: clean up @as * pkg/pixman,utf8proc: clean up @as * clean up @as * lots more @as cleanup * undo flatpak changes * clean up @as
This commit is contained in:

committed by
GitHub

parent
0c632e7345
commit
314f9287b1
@@ -23,7 +23,7 @@ pub inline fn create(typ: c.GLenum) errors.Error!Shader {
|
||||
|
||||
/// Set the source and compile a shader.
|
||||
pub inline fn setSourceAndCompile(s: Shader, source: [:0]const u8) !void {
|
||||
glad.context.ShaderSource.?(s.id, 1, &@ptrCast([*c]const u8, source), null);
|
||||
glad.context.ShaderSource.?(s.id, 1, &@as([*c]const u8, @ptrCast(source)), null);
|
||||
glad.context.CompileShader.?(s.id);
|
||||
|
||||
// Check if compilation succeeded
|
||||
|
Reference in New Issue
Block a user