mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
remove metal workaround completely
This commit is contained in:
@ -395,9 +395,6 @@ pub fn build(b: *std.Build) !void {
|
|||||||
lib.linkLibC();
|
lib.linkLibC();
|
||||||
lib.addOptions("build_options", exe_options);
|
lib.addOptions("build_options", exe_options);
|
||||||
|
|
||||||
// See the comment in this file
|
|
||||||
lib.addCSourceFile("src/renderer/metal_workaround.c", &.{});
|
|
||||||
|
|
||||||
// Create a single static lib with all our dependencies merged
|
// Create a single static lib with all our dependencies merged
|
||||||
var lib_list = try addDeps(b, lib, true);
|
var lib_list = try addDeps(b, lib, true);
|
||||||
try lib_list.append(.{ .generated = &lib.output_path_source });
|
try lib_list.append(.{ .generated = &lib.output_path_source });
|
||||||
@ -427,9 +424,6 @@ pub fn build(b: *std.Build) !void {
|
|||||||
lib.linkLibC();
|
lib.linkLibC();
|
||||||
lib.addOptions("build_options", exe_options);
|
lib.addOptions("build_options", exe_options);
|
||||||
|
|
||||||
// See the comment in this file
|
|
||||||
lib.addCSourceFile("src/renderer/metal_workaround.c", &.{});
|
|
||||||
|
|
||||||
// Create a single static lib with all our dependencies merged
|
// Create a single static lib with all our dependencies merged
|
||||||
var lib_list = try addDeps(b, lib, true);
|
var lib_list = try addDeps(b, lib, true);
|
||||||
try lib_list.append(.{ .generated = &lib.output_path_source });
|
try lib_list.append(.{ .generated = &lib.output_path_source });
|
||||||
|
@ -1176,9 +1176,6 @@ fn syncAtlasTexture(device: objc.Object, atlas: *const font.Atlas, texture: *obj
|
|||||||
texture.* = try initAtlasTexture(device, atlas);
|
texture.* = try initAtlasTexture(device, atlas);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Once the above linked issue is fixed, this is what we actually
|
|
||||||
// want to do:
|
|
||||||
//
|
|
||||||
texture.msgSend(
|
texture.msgSend(
|
||||||
void,
|
void,
|
||||||
objc.sel("replaceRegion:mipmapLevel:withBytes:bytesPerRow:"),
|
objc.sel("replaceRegion:mipmapLevel:withBytes:bytesPerRow:"),
|
||||||
|
Reference in New Issue
Block a user