This commit is contained in:
parent
c06cc3fbc6
commit
72a368f2a2
2 changed files with 12 additions and 3 deletions
|
@ -29,7 +29,7 @@ void PrimInit()
|
||||||
GUIOtPtr=BaseOtPtr;
|
GUIOtPtr=BaseOtPtr;
|
||||||
OtPtr=GUIOtPtr+MAX_OT_GUI;
|
OtPtr=GUIOtPtr+MAX_OT_GUI;
|
||||||
CurrPrim=(u8*)PrimBuffer[PrimFlipFlag];
|
CurrPrim=(u8*)PrimBuffer[PrimFlipFlag];
|
||||||
EndPrim=CurrPrim+(PRIMPOOL_SIZE);
|
EndPrim=CurrPrim+PRIMPOOL_SIZE;
|
||||||
|
|
||||||
PrimListStart=PrimBuffer[0];
|
PrimListStart=PrimBuffer[0];
|
||||||
PrimListEnd=PrimListStart+(PRIMPOOL_SIZE*2);
|
PrimListEnd=PrimListStart+(PRIMPOOL_SIZE*2);
|
||||||
|
@ -43,6 +43,11 @@ void PrimInit()
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
void PrimDisplay()
|
void PrimDisplay()
|
||||||
{
|
{
|
||||||
|
if ((int)CurrPrim>=(int)EndPrim)
|
||||||
|
{
|
||||||
|
ASSERT(!"PRIM OVERFLOW");
|
||||||
|
}
|
||||||
|
|
||||||
CAnimTex::AnimateTex();
|
CAnimTex::AnimateTex();
|
||||||
CPakTex::DMAPakTex();
|
CPakTex::DMAPakTex();
|
||||||
UnlinkOTagR(BaseOtPtr, MAX_OT_ALL, &DmaStart[PrimFlipFlag]);
|
UnlinkOTagR(BaseOtPtr, MAX_OT_ALL, &DmaStart[PrimFlipFlag]);
|
||||||
|
|
|
@ -272,7 +272,9 @@ void DoAssert( const char * Txt, const char * file, const int line )
|
||||||
|
|
||||||
VSync(0);
|
VSync(0);
|
||||||
VidSwapDraw();
|
VidSwapDraw();
|
||||||
PrimDisplay();
|
// PrimDisplay();
|
||||||
|
DrawOTag(OtPtr);
|
||||||
|
|
||||||
while(DrawSync(1));
|
while(DrawSync(1));
|
||||||
|
|
||||||
InitOTag(OtPtr, MAX_OT);
|
InitOTag(OtPtr, MAX_OT);
|
||||||
|
@ -280,7 +282,9 @@ void DoAssert( const char * Txt, const char * file, const int line )
|
||||||
|
|
||||||
VSync(0);
|
VSync(0);
|
||||||
VidSwapDraw();
|
VidSwapDraw();
|
||||||
PrimDisplay();
|
// PrimDisplay();
|
||||||
|
DrawOTag(OtPtr);
|
||||||
|
|
||||||
while(DrawSync(1));
|
while(DrawSync(1));
|
||||||
|
|
||||||
F.dump();
|
F.dump();
|
||||||
|
|
Loading…
Add table
Reference in a new issue