|
|
@@ -1,3 +1,4 @@
|
|
|
+using Ryujinx.Common.Helper;
|
|
|
using SharpMetal.QuartzCore;
|
|
|
using System;
|
|
|
|
|
|
@@ -7,14 +8,12 @@ namespace Ryujinx.Ava.UI.Renderer
|
|
|
{
|
|
|
public CAMetalLayer CreateSurface()
|
|
|
{
|
|
|
- if (OperatingSystem.IsMacOS())
|
|
|
+ if (OperatingSystem.IsMacOS() && RunningPlatform.IsArm)
|
|
|
{
|
|
|
return new CAMetalLayer(MetalLayer);
|
|
|
}
|
|
|
- else
|
|
|
- {
|
|
|
- throw new NotSupportedException();
|
|
|
- }
|
|
|
+
|
|
|
+ throw new NotSupportedException($"Cannot create a {nameof(CAMetalLayer)} without being on ARM Mac.");
|
|
|
}
|
|
|
}
|
|
|
}
|