summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Fifo.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2016-08-07 13:03:07 -0400
committerLioncash <mathew1800@gmail.com>2016-08-07 13:03:07 -0400
commite01c143379cac68dccdcb00db195b218e500b1c8 (patch)
tree266a9ba5dd8507795c3124eb26865a2be075c35b /Source/Core/VideoCommon/Fifo.cpp
parent1ab99ee22c1b6ae1b6d71aef717f277f39045067 (diff)
Common: namespace MemoryUtil
Diffstat (limited to 'Source/Core/VideoCommon/Fifo.cpp')
-rw-r--r--Source/Core/VideoCommon/Fifo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/Fifo.cpp b/Source/Core/VideoCommon/Fifo.cpp
index 504a274157..fbf22faea7 100644
--- a/Source/Core/VideoCommon/Fifo.cpp
+++ b/Source/Core/VideoCommon/Fifo.cpp
@@ -106,7 +106,7 @@ void PauseAndLock(bool doLock, bool unpauseOnUnlock)
void Init()
{
// Padded so that SIMD overreads in the vertex loader are safe
- s_video_buffer = (u8*)AllocateMemoryPages(FIFO_SIZE + 4);
+ s_video_buffer = static_cast<u8*>(Common::AllocateMemoryPages(FIFO_SIZE + 4));
ResetVideoBuffer();
if (SConfig::GetInstance().bCPUThread)
s_gpu_mainloop.Prepare();
@@ -118,7 +118,7 @@ void Shutdown()
if (s_gpu_mainloop.IsRunning())
PanicAlert("Fifo shutting down while active");
- FreeMemoryPages(s_video_buffer, FIFO_SIZE + 4);
+ Common::FreeMemoryPages(s_video_buffer, FIFO_SIZE + 4);
s_video_buffer = nullptr;
s_video_buffer_write_ptr = nullptr;
s_video_buffer_pp_read_ptr = nullptr;