diff options
| author | Lioncash <mathew1800@gmail.com> | 2016-08-07 13:03:07 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2016-08-07 13:03:07 -0400 |
| commit | e01c143379cac68dccdcb00db195b218e500b1c8 (patch) | |
| tree | 266a9ba5dd8507795c3124eb26865a2be075c35b /Source/Core/VideoCommon/TextureCacheBase.cpp | |
| parent | 1ab99ee22c1b6ae1b6d71aef717f277f39045067 (diff) | |
Common: namespace MemoryUtil
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index 94095ecf95..1cc0e3635e 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -63,15 +63,15 @@ void TextureCacheBase::CheckTempSize(size_t required_size) return; temp_size = required_size; - FreeAlignedMemory(temp); - temp = (u8*)AllocateAlignedMemory(temp_size, 16); + Common::FreeAlignedMemory(temp); + temp = static_cast<u8*>(Common::AllocateAlignedMemory(temp_size, 16)); } TextureCacheBase::TextureCacheBase() { temp_size = 2048 * 2048 * 4; if (!temp) - temp = (u8*)AllocateAlignedMemory(temp_size, 16); + temp = static_cast<u8*>(Common::AllocateAlignedMemory(temp_size, 16)); TexDecoder_SetTexFmtOverlayOptions(g_ActiveConfig.bTexFmtOverlayEnable, g_ActiveConfig.bTexFmtOverlayCenter); @@ -103,7 +103,7 @@ TextureCacheBase::~TextureCacheBase() { HiresTexture::Shutdown(); Invalidate(); - FreeAlignedMemory(temp); + Common::FreeAlignedMemory(temp); temp = nullptr; } |
