slot based allocator for lua, usage of lua_createtable

This commit is contained in:
veclavtalica
2025-01-12 02:44:41 +03:00
parent 46e077ba63
commit e8b02570a2
3 changed files with 60 additions and 6 deletions

View File

@ -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);