Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed list loop caused when there are two entries in the list and the…
Browse files Browse the repository at this point in the history
… one being returned is already at the head.
  • Loading branch information
slouken committed Nov 8, 2011
1 parent 1ca94c1 commit 38fe7cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/opengles2/SDL_render_gles2.c
Expand Up @@ -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;
Expand Down

0 comments on commit 38fe7cf

Please sign in to comment.