build fixin'

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@213 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard 2008-08-14 22:08:17 +00:00
parent 9e15c51f9e
commit 9f3899aa58
1 changed files with 2 additions and 2 deletions

View File

@ -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));