fix existenze demo! warning: this may be a bad hack :( paging ector
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3060 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
599d9e9067
commit
6c29abe2ef
|
@ -22,6 +22,7 @@
|
|||
#include "VideoCommon.h"
|
||||
#include "LookUpTables.h"
|
||||
#include "VertexLoader.h"
|
||||
#include "VertexLoaderManager.h"
|
||||
#include "VertexLoader_Color.h"
|
||||
#include "NativeVertexWriter.h"
|
||||
|
||||
|
@ -166,7 +167,12 @@ void LOADERDECL Color_ReadIndex8_24b_6666()
|
|||
void LOADERDECL Color_ReadIndex8_32b_8888()
|
||||
{
|
||||
u8 Index = DataReadU8();
|
||||
const u8 *iAddress = cached_arraybases[ARRAY_COLOR+colIndex] + (Index * arraystrides[ARRAY_COLOR+colIndex]);
|
||||
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));
|
||||
}
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue