diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2018-04-05 10:23:52 -0300 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2018-04-05 10:23:52 -0300 |
| commit | 4c19c908e5d0c7e5d305fa816c53c9787432b83c (patch) | |
| tree | 65fb7a6aea8c9652f0c8813acd02147d237a986b | |
| parent | 1f013df7ed6d1bd4b2869f6f53a013bb15bdc9d5 (diff) | |
Color* should be an array in NvGpuIoctlZbcSetTable
| -rw-r--r-- | Ryujinx.Core/OsHle/Services/Nv/ServiceNvDrv.cs | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/Ryujinx.Core/OsHle/Services/Nv/ServiceNvDrv.cs b/Ryujinx.Core/OsHle/Services/Nv/ServiceNvDrv.cs index 6774a3d0..e314169b 100644 --- a/Ryujinx.Core/OsHle/Services/Nv/ServiceNvDrv.cs +++ b/Ryujinx.Core/OsHle/Services/Nv/ServiceNvDrv.cs @@ -389,11 +389,22 @@ namespace Ryujinx.Core.OsHle.Services.Nv MemReader Reader = new MemReader(Context.Memory, Position); - int ColorDs = Reader.ReadInt32(); - int ColorL2 = Reader.ReadInt32(); - int Depth = Reader.ReadInt32(); - int Format = Reader.ReadInt32(); - int Type = Reader.ReadInt32(); + int[] ColorDs = new int[4]; + int[] ColorL2 = new int[4]; + + ColorDs[0] = Reader.ReadInt32(); + ColorDs[1] = Reader.ReadInt32(); + ColorDs[2] = Reader.ReadInt32(); + ColorDs[3] = Reader.ReadInt32(); + + ColorL2[0] = Reader.ReadInt32(); + ColorL2[1] = Reader.ReadInt32(); + ColorL2[2] = Reader.ReadInt32(); + ColorL2[3] = Reader.ReadInt32(); + + int Depth = Reader.ReadInt32(); + int Format = Reader.ReadInt32(); + int Type = Reader.ReadInt32(); return 0; } |
