twn_textures.c: minor optimization
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user