summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-03-23 20:46:21 +0100
committerbunnei <bunneidev@gmail.com>2018-03-23 20:46:21 +0100
commitb5f3e7951b69fe689408f4560c83860302c540e5 (patch)
tree1bc1aa0f1d29d0080084bdcb9c8ecc8db1519498 /src/core
parentRasterizerCacheOpenGL: FlushAll should flush full memory region. (diff)
downloadyuzu-b5f3e7951b69fe689408f4560c83860302c540e5.tar
yuzu-b5f3e7951b69fe689408f4560c83860302c540e5.tar.gz
yuzu-b5f3e7951b69fe689408f4560c83860302c540e5.tar.bz2
yuzu-b5f3e7951b69fe689408f4560c83860302c540e5.tar.lz
yuzu-b5f3e7951b69fe689408f4560c83860302c540e5.tar.xz
yuzu-b5f3e7951b69fe689408f4560c83860302c540e5.tar.zst
yuzu-b5f3e7951b69fe689408f4560c83860302c540e5.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/memory.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/memory.cpp b/src/core/memory.cpp
index fd5a57022..0eca4e76e 100644
--- a/src/core/memory.cpp
+++ b/src/core/memory.cpp
@@ -318,13 +318,13 @@ void RasterizerFlushVirtualRegion(VAddr start, u64 size, FlushMode mode) {
auto* rasterizer = VideoCore::g_renderer->Rasterizer();
switch (mode) {
case FlushMode::Flush:
- rasterizer->FlushRegion(region_start, overlap_size);
+ rasterizer->FlushRegion(overlap_start, overlap_size);
break;
case FlushMode::Invalidate:
- rasterizer->InvalidateRegion(region_start, overlap_size);
+ rasterizer->InvalidateRegion(overlap_start, overlap_size);
break;
case FlushMode::FlushAndInvalidate:
- rasterizer->FlushAndInvalidateRegion(region_start, overlap_size);
+ rasterizer->FlushAndInvalidateRegion(overlap_start, overlap_size);
break;
}
};