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:
parent
e0a202b7ef
commit
c25346773d
|
@ -42,6 +42,7 @@ void Init()
|
||||||
MarkAllDirty();
|
MarkAllDirty();
|
||||||
for (int i = 0; i < 8; i++)
|
for (int i = 0; i < 8; i++)
|
||||||
g_VertexLoaders[i] = NULL;
|
g_VertexLoaders[i] = NULL;
|
||||||
|
RecomputeCachedArraybases();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Shutdown()
|
void Shutdown()
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
#include "VideoCommon.h"
|
#include "VideoCommon.h"
|
||||||
#include "LookUpTables.h"
|
#include "LookUpTables.h"
|
||||||
#include "VertexLoader.h"
|
#include "VertexLoader.h"
|
||||||
#include "VertexLoaderManager.h"
|
|
||||||
#include "VertexLoader_Color.h"
|
#include "VertexLoader_Color.h"
|
||||||
#include "NativeVertexWriter.h"
|
#include "NativeVertexWriter.h"
|
||||||
|
|
||||||
|
@ -167,12 +166,7 @@ void LOADERDECL Color_ReadIndex8_24b_6666()
|
||||||
void LOADERDECL Color_ReadIndex8_32b_8888()
|
void LOADERDECL Color_ReadIndex8_32b_8888()
|
||||||
{
|
{
|
||||||
u8 Index = DataReadU8();
|
u8 Index = DataReadU8();
|
||||||
u8 *iAddress = cached_arraybases[ARRAY_COLOR+colIndex] + (Index * arraystrides[ARRAY_COLOR+colIndex]);
|
const 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]);
|
|
||||||
}
|
|
||||||
_SetCol(_Read32(iAddress));
|
_SetCol(_Read32(iAddress));
|
||||||
}
|
}
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Reference in New Issue