summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/TextureSampler.cpp
diff options
context:
space:
mode:
authorMai <mathew1800@gmail.com>2022-12-07 00:52:31 +0000
committerGitHub <noreply@github.com>2022-12-07 00:52:31 +0000
commit94faad0d3727876f507577655d771d1f978b2f4a (patch)
treed43be9b3cc0bfdd24143a2a5d195ea8d065afe95 /Source/Core/VideoBackends/Software/TextureSampler.cpp
parent2a23aab25418fc4587b7a8480283b68a9d13eeb9 (diff)
parent839db591d9daa388c1b6eb944a9f34a9aa41c871 (diff)
Merge pull request #11320 from AdmiralCurtiss/globals-memory
HW/Memmap: Refactor Memory to class, move to Core::System.
Diffstat (limited to 'Source/Core/VideoBackends/Software/TextureSampler.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/TextureSampler.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/Software/TextureSampler.cpp b/Source/Core/VideoBackends/Software/TextureSampler.cpp
index 0ba340c33a..d5222384f0 100644
--- a/Source/Core/VideoBackends/Software/TextureSampler.cpp
+++ b/Source/Core/VideoBackends/Software/TextureSampler.cpp
@@ -9,6 +9,7 @@
#include "Common/CommonTypes.h"
#include "Common/MsgHandler.h"
#include "Core/HW/Memmap.h"
+#include "Core/System.h"
#include "VideoCommon/BPMemory.h"
#include "VideoCommon/TextureDecoder.h"
@@ -132,8 +133,11 @@ void SampleMip(s32 s, s32 t, s32 mip, bool linear, u8 texmap, u8* sample)
}
else
{
+ auto& system = Core::System::GetInstance();
+ auto& memory = system.GetMemory();
+
const u32 imageBase = texUnit.texImage3.image_base << 5;
- imageSrc = Memory::GetPointer(imageBase);
+ imageSrc = memory.GetPointer(imageBase);
}
int image_width_minus_1 = ti0.width;