mirror of https://github.com/Ryujinx/Ryujinx.git
Fix invariant position not doing its job
This commit is contained in:
parent
16a9b18c26
commit
6f440f53f4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue