Max Katz
5 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
0 additions and
11 deletions
-
src/iOS/Avalonia.iOS/Metal/MetalPlatformGraphics.cs
|
|
|
@ -33,17 +33,6 @@ internal class MetalPlatformGraphics : IPlatformGraphics |
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
#if !TVOS
|
|
|
|
using var queue = device.CreateCommandQueue(); |
|
|
|
using var context = GRContext.CreateMetal(new GRMtlBackendContext { Device = device, Queue = queue }); |
|
|
|
if (context is null) |
|
|
|
{ |
|
|
|
// Can be null on macCatalyst because of older Skia bug.
|
|
|
|
// Fixed in SkiaSharp 3.0
|
|
|
|
return null; |
|
|
|
} |
|
|
|
#endif
|
|
|
|
|
|
|
|
return new MetalPlatformGraphics(device); |
|
|
|
} |
|
|
|
} |
|
|
|
|