mirror of
https://github.com/libretro/retroluxury.git
synced 2024-11-23 07:39:47 +00:00
fixed inifinite loop when bliting sprites
This commit is contained in:
parent
f253a1c11e
commit
847584bf62
@ -148,6 +148,7 @@ void rl_sprites_blit_nobg( void )
|
||||
{
|
||||
sptptr->item->next = free_list;
|
||||
free_list = sptptr->item;
|
||||
sptptr++;
|
||||
}
|
||||
while ( sptptr < endptr );
|
||||
}
|
||||
@ -216,9 +217,9 @@ void rl_sprites_blit( void )
|
||||
{
|
||||
do
|
||||
{
|
||||
item_t* item = (item_t*)sptptr->item;
|
||||
item->next = free_list;
|
||||
free_list = item;
|
||||
sptptr->item->next = free_list;
|
||||
free_list = sptptr->item;
|
||||
sptptr++;
|
||||
}
|
||||
while ( sptptr < endptr );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user