Skip to content

Commit

Permalink
Partial reverse of previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
katajakasa committed May 8, 2014
1 parent 3c7b485 commit a3dc5aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/video/tcache.c
Expand Up @@ -154,6 +154,10 @@ SDL_Texture* tcache_get(surface *sur,
surface_to_texture(sur, val->tex, pal, remap_table, pal_offset);
}

// Set correct age and palette version
val->age = 0;
val->pal_version = pal->version;

// Do some statistics stuff
cache->misses++;
return val->tex;
Expand Down

0 comments on commit a3dc5aa

Please sign in to comment.