summaryrefslogtreecommitdiffstats
path: root/src/core/memory.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-03-23 20:01:45 +0100
committerbunnei <bunneidev@gmail.com>2018-03-23 20:01:45 +0100
commit11047d7fd511fd9ae6130da7bc824fefa6fb64c1 (patch)
treef8609ebc8e4caaa5457066b4e6c22321e86af8be /src/core/memory.cpp
parentrenderer_opengl: Add framebuffer_transform_flags member variable. (diff)
downloadyuzu-11047d7fd511fd9ae6130da7bc824fefa6fb64c1.tar
yuzu-11047d7fd511fd9ae6130da7bc824fefa6fb64c1.tar.gz
yuzu-11047d7fd511fd9ae6130da7bc824fefa6fb64c1.tar.bz2
yuzu-11047d7fd511fd9ae6130da7bc824fefa6fb64c1.tar.lz
yuzu-11047d7fd511fd9ae6130da7bc824fefa6fb64c1.tar.xz
yuzu-11047d7fd511fd9ae6130da7bc824fefa6fb64c1.tar.zst
yuzu-11047d7fd511fd9ae6130da7bc824fefa6fb64c1.zip
Diffstat (limited to 'src/core/memory.cpp')
-rw-r--r--src/core/memory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/memory.cpp b/src/core/memory.cpp
index 8a83de904..d8aab7090 100644
--- a/src/core/memory.cpp
+++ b/src/core/memory.cpp
@@ -296,7 +296,7 @@ u8* GetPhysicalPointer(PAddr address) {
return target_pointer;
}
-void RasterizerFlushVirtualRegion(VAddr start, u32 size, FlushMode mode) {
+void RasterizerFlushVirtualRegion(VAddr start, u64 size, FlushMode mode) {
// Since pages are unmapped on shutdown after video core is shutdown, the renderer may be
// null here
if (VideoCore::g_renderer == nullptr) {
@@ -313,7 +313,7 @@ void RasterizerFlushVirtualRegion(VAddr start, u32 size, FlushMode mode) {
VAddr overlap_start = std::max(start, region_start);
VAddr overlap_end = std::min(end, region_end);
- u32 overlap_size = overlap_end - overlap_start;
+ u64 overlap_size = overlap_end - overlap_start;
auto* rasterizer = VideoCore::g_renderer->Rasterizer();
switch (mode) {