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/VideoBackends | |
| parent | 1ab99ee22c1b6ae1b6d71aef717f277f39045067 (diff) | |
Common: namespace MemoryUtil
Diffstat (limited to 'Source/Core/VideoBackends')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/StreamBuffer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoBackends/OGL/StreamBuffer.cpp b/Source/Core/VideoBackends/OGL/StreamBuffer.cpp index 1ed598b043..f0ede2d7d0 100644 --- a/Source/Core/VideoBackends/OGL/StreamBuffer.cpp +++ b/Source/Core/VideoBackends/OGL/StreamBuffer.cpp @@ -261,8 +261,8 @@ public: PinnedMemory(u32 type, u32 size) : StreamBuffer(type, size) { CreateFences(); - m_pointer = - (u8*)AllocateAlignedMemory(ROUND_UP(m_size, ALIGN_PINNED_MEMORY), ALIGN_PINNED_MEMORY); + m_pointer = static_cast<u8*>( + Common::AllocateAlignedMemory(ROUND_UP(m_size, ALIGN_PINNED_MEMORY), ALIGN_PINNED_MEMORY)); glBindBuffer(GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD, m_buffer); glBufferData(GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD, ROUND_UP(m_size, ALIGN_PINNED_MEMORY), m_pointer, GL_STREAM_COPY); @@ -275,7 +275,7 @@ public: DeleteFences(); glBindBuffer(m_buffertype, 0); glFinish(); // ogl pipeline must be flushed, else this buffer can be in use - FreeAlignedMemory(m_pointer); + Common::FreeAlignedMemory(m_pointer); m_pointer = nullptr; } |
