summaryrefslogtreecommitdiffstats
path: root/src/video_core/memory_manager.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-04-06 02:27:57 +0200
committerLioncash <mathew1800@gmail.com>2019-04-06 02:28:44 +0200
commit76ef6e5c2be2d3d31fdc7bf16c499c1f257b9e97 (patch)
tree6728e1d39d4657f4a5fd97cea28e688383e01d22 /src/video_core/memory_manager.cpp
parentvideo_core/memory_manager: Add a const qualified variant of GetPointer() (diff)
downloadyuzu-76ef6e5c2be2d3d31fdc7bf16c499c1f257b9e97.tar
yuzu-76ef6e5c2be2d3d31fdc7bf16c499c1f257b9e97.tar.gz
yuzu-76ef6e5c2be2d3d31fdc7bf16c499c1f257b9e97.tar.bz2
yuzu-76ef6e5c2be2d3d31fdc7bf16c499c1f257b9e97.tar.lz
yuzu-76ef6e5c2be2d3d31fdc7bf16c499c1f257b9e97.tar.xz
yuzu-76ef6e5c2be2d3d31fdc7bf16c499c1f257b9e97.tar.zst
yuzu-76ef6e5c2be2d3d31fdc7bf16c499c1f257b9e97.zip
Diffstat (limited to 'src/video_core/memory_manager.cpp')
-rw-r--r--src/video_core/memory_manager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/memory_manager.cpp b/src/video_core/memory_manager.cpp
index bb7e21e7d..2b3651f20 100644
--- a/src/video_core/memory_manager.cpp
+++ b/src/video_core/memory_manager.cpp
@@ -203,7 +203,7 @@ const u8* MemoryManager::GetPointer(GPUVAddr addr) const {
return {};
}
-void MemoryManager::ReadBlock(GPUVAddr src_addr, void* dest_buffer, std::size_t size) {
+void MemoryManager::ReadBlock(GPUVAddr src_addr, void* dest_buffer, std::size_t size) const {
std::memcpy(dest_buffer, GetPointer(src_addr), size);
}
void MemoryManager::WriteBlock(GPUVAddr dest_addr, const void* src_buffer, std::size_t size) {