From ce7700219864b19b3b0440db83461f6c4a6b1ce0 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 1 Jul 2023 15:19:13 -0700 Subject: [PATCH] remove metal workaround completely --- build.zig | 6 ------ src/renderer/Metal.zig | 3 --- 2 files changed, 9 deletions(-) diff --git a/build.zig b/build.zig index 400872fbc..bedb87de9 100644 --- a/build.zig +++ b/build.zig @@ -395,9 +395,6 @@ pub fn build(b: *std.Build) !void { lib.linkLibC(); 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 var lib_list = try addDeps(b, lib, true); try lib_list.append(.{ .generated = &lib.output_path_source }); @@ -427,9 +424,6 @@ pub fn build(b: *std.Build) !void { lib.linkLibC(); 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 var lib_list = try addDeps(b, lib, true); try lib_list.append(.{ .generated = &lib.output_path_source }); diff --git a/src/renderer/Metal.zig b/src/renderer/Metal.zig index 9a704db01..943b9a6ea 100644 --- a/src/renderer/Metal.zig +++ b/src/renderer/Metal.zig @@ -1176,9 +1176,6 @@ fn syncAtlasTexture(device: objc.Object, atlas: *const font.Atlas, texture: *obj texture.* = try initAtlasTexture(device, atlas); } - // Once the above linked issue is fixed, this is what we actually - // want to do: - // texture.msgSend( void, objc.sel("replaceRegion:mipmapLevel:withBytes:bytesPerRow:"),