might as well zero that toon table while we're at it
This commit is contained in:
parent
53df785ad4
commit
b973902023
|
@ -1625,6 +1625,7 @@ void gfx3d_UpdateToonTable(u8 offset, u16 val)
|
||||||
|
|
||||||
void gfx3d_UpdateToonTable(u8 offset, u32 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] = val & 0xFFFF;
|
||||||
gfx3d.u16ToonTable[offset+1] = val >> 16;
|
gfx3d.u16ToonTable[offset+1] = val >> 16;
|
||||||
}
|
}
|
||||||
|
|
|
@ -312,6 +312,8 @@ struct GFX3D
|
||||||
, frameCtr(0)
|
, frameCtr(0)
|
||||||
, frameCtrRaw(0)
|
, frameCtrRaw(0)
|
||||||
{
|
{
|
||||||
|
for(int i=0;i<ARRAY_SIZE(u16ToonTable);i++)
|
||||||
|
u16ToonTable[i] = 0;
|
||||||
}
|
}
|
||||||
BOOL enableTexturing, enableAlphaTest, enableAlphaBlending,
|
BOOL enableTexturing, enableAlphaTest, enableAlphaBlending,
|
||||||
enableAntialiasing, enableEdgeMarking, enableClearImage, enableFog, enableFogAlphaOnly;
|
enableAntialiasing, enableEdgeMarking, enableClearImage, enableFog, enableFogAlphaOnly;
|
||||||
|
|
Loading…
Reference in New Issue