mirror of
https://github.com/yawut/SDL.git
synced 2026-09-13 11:36:32 -05:00
Fixed list loop caused when there are two entries in the list and the one being returned is already at the head.
This commit is contained in:
@@ -470,7 +470,7 @@ GLES2_CacheProgram(SDL_Renderer *renderer, GLES2_ShaderCacheEntry *vertex,
|
||||
}
|
||||
if (entry)
|
||||
{
|
||||
if (rdata->program_cache.count > 1)
|
||||
if (rdata->program_cache.head != entry)
|
||||
{
|
||||
if (entry->next)
|
||||
entry->next->prev = entry->prev;
|
||||
|
||||
Reference in New Issue
Block a user