summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2016-08-19 11:04:45 +0200
committerGitHub <noreply@github.com>2016-08-19 11:04:45 +0200
commit31c530c7b3043a0673d8ec8694169d1accbb732f (patch)
tree54d3b015e71bb65e1134844c4313ae45b4155612 /Source/Core/VideoCommon/TextureCacheBase.cpp
parent40f4308dc2120ce4e105008f3cb46b6a1c553e64 (diff)
parentfbc0aaf79672cd20c580a28ba765e4a07c2c8c67 (diff)
Merge pull request #3386 from lioncash/memory
Common: Namespace MemoryUtil
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.cpp8
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;
}