mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
don't miss the sprite check
DrawAllSprites depends on HighLnSpr, so prepare in DrawAllSprites was a bad idea as lots of things may have changed
This commit is contained in:
parent
0c7d1ba332
commit
6d8782a1f9
2 changed files with 9 additions and 21 deletions
|
@ -1101,17 +1101,6 @@ DrawSpriteSHi:
|
|||
|
||||
DrawAllSprites:
|
||||
orr r1, r2, r1, lsl #1
|
||||
ldr r12,[r3, #OFS_rendstatus]
|
||||
tst r12,#(PDRAW_DIRTY_SPRITES|PDRAW_SPRITES_MOVED)
|
||||
beq das_no_prep
|
||||
stmfd sp!, {r0,r1,r3,lr}
|
||||
and r0, r12,#PDRAW_DIRTY_SPRITES
|
||||
bic r12,r12,#(PDRAW_DIRTY_SPRITES|PDRAW_SPRITES_MOVED)
|
||||
str r12,[r3, #OFS_rendstatus]
|
||||
bl PrepareSprites
|
||||
ldmfd sp!, {r0,r1,r3,lr}
|
||||
|
||||
das_no_prep:
|
||||
ldr r2, [r0]
|
||||
ands r2, r2, #0x7f
|
||||
bxeq lr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue