src/render/opengles2/SDL_render_gles2.c
changeset 6061 4746757951ac
parent 6060 59d398ac031e
child 6076 e69b1bd26e0b
equal deleted inserted replaced
6060:59d398ac031e 6061:4746757951ac
   468             break;
   468             break;
   469         entry = entry->next;
   469         entry = entry->next;
   470     }
   470     }
   471     if (entry)
   471     if (entry)
   472     {
   472     {
   473         if (rdata->program_cache.count > 1)
   473         if (rdata->program_cache.head != entry)
   474         {
   474         {
   475             if (entry->next)
   475             if (entry->next)
   476                 entry->next->prev = entry->prev;
   476                 entry->next->prev = entry->prev;
   477             if (entry->prev)
   477             if (entry->prev)
   478                 entry->prev->next = entry->next;
   478                 entry->prev->next = entry->next;