mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 15:01:16 +01:00
build fixin'
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@213 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
9e15c51f9e
commit
9f3899aa58
@ -879,7 +879,7 @@ bool VertexManager::Init()
|
|||||||
s_prevcomponents = 0;
|
s_prevcomponents = 0;
|
||||||
s_prevvbstride = 12; // just pos
|
s_prevvbstride = 12; // just pos
|
||||||
s_prevprimitive = 0;
|
s_prevprimitive = 0;
|
||||||
s_pBaseBufferPointer = (u8*)_aligned_malloc(MAX_BUFFER_SIZE, 256);
|
s_pBaseBufferPointer = (u8*)AllocateMemoryPages(MAX_BUFFER_SIZE);
|
||||||
s_pCurBufferPointer = s_pBaseBufferPointer;
|
s_pCurBufferPointer = s_pBaseBufferPointer;
|
||||||
|
|
||||||
for (int i = 0; i < ARRAYSIZE(shiftLookup); i++)
|
for (int i = 0; i < ARRAYSIZE(shiftLookup); i++)
|
||||||
@ -901,7 +901,7 @@ bool VertexManager::Init()
|
|||||||
|
|
||||||
void VertexManager::Destroy()
|
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);
|
glDeleteBuffers(ARRAYSIZE(s_vboBuffers), s_vboBuffers);
|
||||||
memset(s_vboBuffers, 0, sizeof(s_vboBuffers));
|
memset(s_vboBuffers, 0, sizeof(s_vboBuffers));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user