twn_textures.c: minor optimization
This commit is contained in:
parent
3990f78a74
commit
82d4f21a4b
@ -404,7 +404,7 @@ static TextureKey textures_load(TextureCache *cache, const char *path) {
|
||||
|
||||
shput(cache->hash, path, new_texture);
|
||||
|
||||
uint16_t const id = (uint16_t)shgeti(cache->hash, path);
|
||||
uint16_t const id = (uint16_t)shlenu(cache->hash) - 1;
|
||||
|
||||
/* reuse this id for every later missing texture */
|
||||
if (surface == missing_texture_surface)
|
||||
|
Loading…
Reference in New Issue
Block a user