might as well zero that toon table while we're at it

This commit is contained in:
zeromus 2009-11-15 06:44:03 +00:00
parent 53df785ad4
commit b973902023
2 changed files with 3 additions and 0 deletions

View File

@ -1625,6 +1625,7 @@ void gfx3d_UpdateToonTable(u8 offset, u16 val)
void gfx3d_UpdateToonTable(u8 offset, u32 val)
{
//C.O.P. sets toon table via this method
gfx3d.u16ToonTable[offset] = val & 0xFFFF;
gfx3d.u16ToonTable[offset+1] = val >> 16;
}

View File

@ -312,6 +312,8 @@ struct GFX3D
, frameCtr(0)
, frameCtrRaw(0)
{
for(int i=0;i<ARRAY_SIZE(u16ToonTable);i++)
u16ToonTable[i] = 0;
}
BOOL enableTexturing, enableAlphaTest, enableAlphaBlending,
enableAntialiasing, enableEdgeMarking, enableClearImage, enableFog, enableFogAlphaOnly;