From 9f3899aa5808b8a50f96e43c36a3a6c11034c568 Mon Sep 17 00:00:00 2001 From: hrydgard Date: Thu, 14 Aug 2008 22:08:17 +0000 Subject: [PATCH] build fixin' git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@213 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoOGL/Src/VertexLoader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader.cpp b/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader.cpp index 682126d9b8..eb89f5a642 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader.cpp @@ -879,7 +879,7 @@ bool VertexManager::Init() s_prevcomponents = 0; s_prevvbstride = 12; // just pos s_prevprimitive = 0; - s_pBaseBufferPointer = (u8*)_aligned_malloc(MAX_BUFFER_SIZE, 256); + s_pBaseBufferPointer = (u8*)AllocateMemoryPages(MAX_BUFFER_SIZE); s_pCurBufferPointer = s_pBaseBufferPointer; for (int i = 0; i < ARRAYSIZE(shiftLookup); i++) @@ -901,7 +901,7 @@ bool VertexManager::Init() void VertexManager::Destroy() { - _aligned_free(s_pBaseBufferPointer); s_pBaseBufferPointer = s_pCurBufferPointer = NULL; + FreeMemoryPages(s_pBaseBufferPointer, MAX_BUFFER_SIZE); s_pBaseBufferPointer = s_pCurBufferPointer = NULL; glDeleteBuffers(ARRAYSIZE(s_vboBuffers), s_vboBuffers); memset(s_vboBuffers, 0, sizeof(s_vboBuffers));