Fix invariant position not doing its job

This commit is contained in:
Isaac Marovitz 2024-07-04 19:34:14 +01:00
parent d34f031986
commit adc7fb51e4
No known key found for this signature in database
GPG Key ID: 97250B2B09A132E1

View File

@ -38,8 +38,10 @@ namespace Ryujinx.Graphics.Metal
{
ShaderSource shader = shaders[index];
var compileOptions = new MTLCompileOptions { PreserveInvariance = true };
var libraryError = new NSError(IntPtr.Zero);
var shaderLibrary = device.NewLibrary(StringHelper.NSString(shader.Code), new MTLCompileOptions(IntPtr.Zero), ref libraryError);
var shaderLibrary = device.NewLibrary(StringHelper.NSString(shader.Code), compileOptions, ref libraryError);
if (libraryError != IntPtr.Zero)
{
Logger.Warning?.PrintMsg(LogClass.Gpu, shader.Code);