slot based allocator for lua, usage of lua_createtable
This commit is contained in:
@ -439,6 +439,8 @@ TextureKey textures_get_key(TextureCache *cache, const char *path) {
|
||||
}
|
||||
}
|
||||
|
||||
/* TODO: this will be bad when dynamic strings are involved */
|
||||
/* to mitigate that we could free ptr_to_texture each frame */
|
||||
/* try loading */
|
||||
last_texture = textures_load(cache, path);
|
||||
hmput(ptr_to_texture, path, last_texture);
|
||||
|
Reference in New Issue
Block a user