Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed list loop caused when there are two entries in the list and the…

… one being returned is already at the head.
  • Loading branch information
slouken committed Nov 8, 2011
1 parent 1ca94c1 commit 38fe7cf4c7ed46d8b3555a7c30a358486773fcf3
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/render/opengles2/SDL_render_gles2.c
@@ -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;

0 comments on commit 38fe7cf

Please sign in to comment.