revert r3060, instead call RecomputeCachedArraybases() once on init.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3065 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman 2009-04-24 16:40:58 +00:00
parent e0a202b7ef
commit c25346773d
2 changed files with 2 additions and 7 deletions

View file

@ -42,6 +42,7 @@ void Init()
MarkAllDirty();
for (int i = 0; i < 8; i++)
g_VertexLoaders[i] = NULL;
RecomputeCachedArraybases();
}
void Shutdown()

View file

@ -22,7 +22,6 @@
#include "VideoCommon.h"
#include "LookUpTables.h"
#include "VertexLoader.h"
#include "VertexLoaderManager.h"
#include "VertexLoader_Color.h"
#include "NativeVertexWriter.h"
@ -167,12 +166,7 @@ void LOADERDECL Color_ReadIndex8_24b_6666()
void LOADERDECL Color_ReadIndex8_32b_8888()
{
u8 Index = DataReadU8();
u8 *iAddress = cached_arraybases[ARRAY_COLOR+colIndex] + (Index * arraystrides[ARRAY_COLOR+colIndex]);
if (!iAddress)
{
RecomputeCachedArraybases();
iAddress = cached_arraybases[ARRAY_COLOR+colIndex] + (Index * arraystrides[ARRAY_COLOR+colIndex]);
}
const u8 *iAddress = cached_arraybases[ARRAY_COLOR+colIndex] + (Index * arraystrides[ARRAY_COLOR+colIndex]);
_SetCol(_Read32(iAddress));
}
//////////////////////////////////////////////////////////////////////////