Fix invariant position not doing its job

This commit is contained in:
Isaac Marovitz 2024-07-04 19:34:14 +01:00
parent 16a9b18c26
commit 6f440f53f4
No known key found for this signature in database
GPG Key ID: 97250B2B09A132E1
1 changed files with 3 additions and 1 deletions

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