Skip to content

Commit e7afcd0

Browse files
author
Niko
committed
restore to rebuild_ps1
1 parent 960c9c0 commit e7afcd0

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

rebuild_PS1/TEST_DrawInstances.c

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,11 @@ void DrawOneInst(struct Instance* curr)
171171
//the idea is that it loads vertices to scratchpad and with proper sorting,
172172
//you can draw may trigles of the list with minimum additional loads
173173
//then once you don't need vertex data, you can overwrite same indices with new data
174+
#ifdef REBUILD_PC
174175
CompVertex stack[256] = { 0 };
176+
#else
177+
CompVertex* stack = 0x1f800000;
178+
#endif
175179

176180
// pCmd[0] is number of commands
177181
pCmd++;
@@ -429,15 +433,6 @@ void DrawOneInst(struct Instance* curr)
429433

430434
void TEST_DrawInstances(struct GameTracker* gGT)
431435
{
432-
433-
// If PS1, but not PC, dont draw,
434-
// our function is too slow for PS1
435-
#ifndef REBUILD_PC
436-
#ifdef REBUILD_PS1
437-
return;
438-
#endif
439-
#endif
440-
441436
if (gGT->level1 != 0)
442437
{
443438
if (gGT->level1->ptrInstDefs != 0)

0 commit comments

Comments
 (0)