diff options
| author | JosJuice <josjuice@gmail.com> | 2024-04-07 11:13:25 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2024-04-09 21:08:57 +0200 |
| commit | 54773bc5d2c847bc4e070a8a647b97a9fc76bcb0 (patch) | |
| tree | 23974ba939d0a61c792e2fec2aca7e97758f59e0 /Source/Core/VideoCommon/OpcodeDecoding.cpp | |
| parent | 69aca2fbfc88d08a17d36c03d51dd698eb9cce1b (diff) | |
VideoCommon: Remove calls to GetPointer
This fourth part of my series of patches to get rid of unsafe uses of
GetPointer takes care of the "easy" cases in VideoCommon. Three uses of
GetPointer now remain in Dolphin: VertexLoaderManager, TextureInfo, and
the software renderer's TextureSampler.
Diffstat (limited to 'Source/Core/VideoCommon/OpcodeDecoding.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/OpcodeDecoding.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/OpcodeDecoding.cpp b/Source/Core/VideoCommon/OpcodeDecoding.cpp index 1456fbf2d0..768356aea8 100644 --- a/Source/Core/VideoCommon/OpcodeDecoding.cpp +++ b/Source/Core/VideoCommon/OpcodeDecoding.cpp @@ -158,7 +158,7 @@ public: if constexpr (is_preprocess) { auto& memory = system.GetMemory(); - const u8* const start_address = memory.GetPointer(address); + const u8* const start_address = memory.GetPointerForRange(address, size); system.GetFifo().PushFifoAuxBuffer(start_address, size); @@ -179,10 +179,10 @@ public: else { auto& memory = system.GetMemory(); - start_address = memory.GetPointer(address); + start_address = memory.GetPointerForRange(address, size); } - // Avoid the crash if memory.GetPointer failed .. + // Avoid the crash if memory.GetPointerForRange failed .. if (start_address != nullptr) { // temporarily swap dl and non-dl (small "hack" for the stats) |
