d3d: saner size of vbuffer. probably doesn't fix anything noticable.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2636 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard 2009-03-09 22:39:00 +00:00
parent 095ba7bcd6
commit 375c732f11
1 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ static LPDIRECT3DVERTEXDECLARATION9 vDecl;
static u8 *fakeVBuffer; // format undefined - NativeVertexFormat takes care of the declaration. static u8 *fakeVBuffer; // format undefined - NativeVertexFormat takes care of the declaration.
static u16 *fakeIBuffer; // These are just straightforward 16-bit indices. static u16 *fakeIBuffer; // These are just straightforward 16-bit indices.
#define MAXVBUFFERSIZE 65536*3 #define MAXVBUFFERSIZE 65536
#define MAXIBUFFERSIZE 65536*3 #define MAXIBUFFERSIZE 65536*3
const Collection collectionTypeLUT[8] = const Collection collectionTypeLUT[8] =
@ -81,7 +81,7 @@ void DestroyDeviceObjects();
bool Init() bool Init()
{ {
collection = C_NOTHING; collection = C_NOTHING;
fakeVBuffer = new u8[MAXVBUFFERSIZE]; fakeVBuffer = new u8[MAXVBUFFERSIZE * 64];
fakeIBuffer = new u16[MAXIBUFFERSIZE]; fakeIBuffer = new u16[MAXIBUFFERSIZE];
CreateDeviceObjects(); CreateDeviceObjects();
VertexManager::s_pCurBufferPointer = fakeVBuffer; VertexManager::s_pCurBufferPointer = fakeVBuffer;