Skip to content

Commit 7f1a4d1

Browse files
committed
Remove maccatalyst hack
1 parent 0b6dfe6 commit 7f1a4d1

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

src/iOS/Avalonia.iOS/Metal/MetalPlatformGraphics.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using System.Runtime.Versioning;
33
using Avalonia.Platform;
44
using Metal;
5-
using SkiaSharp;
65

76
namespace Avalonia.iOS.Metal;
87

@@ -33,17 +32,6 @@ private MetalPlatformGraphics(IMTLDevice defaultDevice)
3332
return null;
3433
}
3534

36-
#if !TVOS
37-
using var queue = device.CreateCommandQueue();
38-
using var context = GRContext.CreateMetal(new GRMtlBackendContext { Device = device, Queue = queue });
39-
if (context is null)
40-
{
41-
// Can be null on macCatalyst because of older Skia bug.
42-
// Fixed in SkiaSharp 3.0
43-
return null;
44-
}
45-
#endif
46-
4735
return new MetalPlatformGraphics(device);
4836
}
4937
}

0 commit comments

Comments
 (0)