summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/XFMemLoader.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/VideoBackends/Software/XFMemLoader.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/VideoBackends/Software/XFMemLoader.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/XFMemLoader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/Software/XFMemLoader.cpp b/Source/Core/VideoBackends/Software/XFMemLoader.cpp
index 08e03ad8d8..1ad1804f72 100644
--- a/Source/Core/VideoBackends/Software/XFMemLoader.cpp
+++ b/Source/Core/VideoBackends/Software/XFMemLoader.cpp
@@ -74,7 +74,7 @@ void SWLoadIndexedXF(u32 val, int array)
int size = ((val >> 12) & 0xF) + 1;
//load stuff from array to address in xf mem
- u32 *pData = (u32*)Memory::GetPointer(arraybases[array] + arraystrides[array]*index);
+ u32 *pData = (u32*)Memory::GetPointer(g_main_cp_state.array_bases[array] + g_main_cp_state.array_strides[array]*index);
// byteswap data
u32 buffer[16];