mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 00:58:29 +02:00
Common: namespace MemoryUtil
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user