Browse Source

Backport GRContext bugfix from 12.0 branch (#19615)

pull/19621/head
Max Katz 5 months ago
committed by GitHub
parent
commit
d52b96348d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 11
      src/iOS/Avalonia.iOS/Metal/MetalPlatformGraphics.cs

11
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);
}
}

Loading…
Cancel
Save