diff options
author | Lioncash <mathew1800@gmail.com> | 2018-08-03 19:56:33 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-08-04 08:36:58 +0200 |
commit | 2665457f4ab3562525543f8e474bfb93ce3416ad (patch) | |
tree | 16166950cebde8f7ac99d51a3bcdcfa2869cf627 /src/core/memory.cpp | |
parent | video_core: Eliminate the g_renderer global variable (diff) | |
download | yuzu-2665457f4ab3562525543f8e474bfb93ce3416ad.tar yuzu-2665457f4ab3562525543f8e474bfb93ce3416ad.tar.gz yuzu-2665457f4ab3562525543f8e474bfb93ce3416ad.tar.bz2 yuzu-2665457f4ab3562525543f8e474bfb93ce3416ad.tar.lz yuzu-2665457f4ab3562525543f8e474bfb93ce3416ad.tar.xz yuzu-2665457f4ab3562525543f8e474bfb93ce3416ad.tar.zst yuzu-2665457f4ab3562525543f8e474bfb93ce3416ad.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/memory.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/memory.cpp b/src/core/memory.cpp index a8f08e1da..1133bcbaf 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -355,16 +355,16 @@ void RasterizerFlushVirtualRegion(VAddr start, u64 size, FlushMode mode) { const u64 overlap_size = overlap_end - overlap_start; for (const auto& gpu_address : gpu_addresses) { - auto* rasterizer = system_instance.Renderer().Rasterizer(); + auto& rasterizer = system_instance.Renderer().Rasterizer(); switch (mode) { case FlushMode::Flush: - rasterizer->FlushRegion(gpu_address, overlap_size); + rasterizer.FlushRegion(gpu_address, overlap_size); break; case FlushMode::Invalidate: - rasterizer->InvalidateRegion(gpu_address, overlap_size); + rasterizer.InvalidateRegion(gpu_address, overlap_size); break; case FlushMode::FlushAndInvalidate: - rasterizer->FlushAndInvalidateRegion(gpu_address, overlap_size); + rasterizer.FlushAndInvalidateRegion(gpu_address, overlap_size); break; } } |