summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/XFStructs.cpp
diff options
context:
space:
mode:
authorcomex <comexk@gmail.com>2014-08-27 13:26:06 -0400
committercomex <comexk@gmail.com>2014-09-28 21:23:29 -0400
commitf0131c2e09faba0d65fa5b7360898e514e3636f5 (patch)
tree3715ecd44ad120b0667967115962cf036fcadd47 /Source/Core/VideoCommon/XFStructs.cpp
parent90638c6806ac2c92b211e41b2abd257b4266f488 (diff)
Mechanical changes to move most CP state to a struct rather than separate globals.
The next commit will add a separate copy of the struct and the ability for LoadCPReg to work on it.
Diffstat (limited to 'Source/Core/VideoCommon/XFStructs.cpp')
-rw-r--r--Source/Core/VideoCommon/XFStructs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/XFStructs.cpp b/Source/Core/VideoCommon/XFStructs.cpp
index 650a4a913b..a0941a0133 100644
--- a/Source/Core/VideoCommon/XFStructs.cpp
+++ b/Source/Core/VideoCommon/XFStructs.cpp
@@ -252,7 +252,7 @@ void LoadIndexedXF(u32 val, int refarray)
//load stuff from array to address in xf mem
u32* currData = (u32*)(&xfmem) + address;
- u32* newData = (u32*)Memory::GetPointer(arraybases[refarray] + arraystrides[refarray] * index);
+ u32* newData = (u32*)Memory::GetPointer(g_main_cp_state.array_bases[refarray] + g_main_cp_state.array_strides[refarray] * index);
bool changed = false;
for (int i = 0; i < size; ++i)
{