From 375c732f11954910c11bdef9ea44d17030b26514 Mon Sep 17 00:00:00 2001 From: hrydgard Date: Mon, 9 Mar 2009 22:39:00 +0000 Subject: [PATCH] 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 --- Source/Plugins/Plugin_VideoDX9/Src/VertexManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Plugins/Plugin_VideoDX9/Src/VertexManager.cpp b/Source/Plugins/Plugin_VideoDX9/Src/VertexManager.cpp index 2603406431..3acfb460e0 100644 --- a/Source/Plugins/Plugin_VideoDX9/Src/VertexManager.cpp +++ b/Source/Plugins/Plugin_VideoDX9/Src/VertexManager.cpp @@ -60,7 +60,7 @@ static LPDIRECT3DVERTEXDECLARATION9 vDecl; static u8 *fakeVBuffer; // format undefined - NativeVertexFormat takes care of the declaration. static u16 *fakeIBuffer; // These are just straightforward 16-bit indices. -#define MAXVBUFFERSIZE 65536*3 +#define MAXVBUFFERSIZE 65536 #define MAXIBUFFERSIZE 65536*3 const Collection collectionTypeLUT[8] = @@ -81,7 +81,7 @@ void DestroyDeviceObjects(); bool Init() { collection = C_NOTHING; - fakeVBuffer = new u8[MAXVBUFFERSIZE]; + fakeVBuffer = new u8[MAXVBUFFERSIZE * 64]; fakeIBuffer = new u16[MAXIBUFFERSIZE]; CreateDeviceObjects(); VertexManager::s_pCurBufferPointer = fakeVBuffer;