Try again

This commit is contained in:
Isaac Marovitz 2024-03-18 15:03:10 -04:00
parent c9f7d7e85a
commit a104af7410
No known key found for this signature in database
GPG Key ID: 97250B2B09A132E1
1 changed files with 9 additions and 3 deletions

View File

@ -1,14 +1,20 @@
using SharpMetal.QuartzCore;
using System.Runtime.Versioning;
using System;
namespace Ryujinx.Ava.UI.Renderer
{
[SupportedOSPlatform("macos")]
public class EmbeddedWindowMetal : EmbeddedWindow
{
public CAMetalLayer CreateSurface()
{
return new CAMetalLayer(MetalLayer);
if (OperatingSystem.IsMacOS())
{
return new CAMetalLayer(MetalLayer);
}
else
{
throw new NotSupportedException();
}
}
}
}