Fix resource cleanup

This commit is contained in:
Alexander Klingenbeck 2023-05-27 15:09:19 +02:00
parent 5bd2820ec8
commit 7603ba55dd
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ export const resourceUnload = (id: string) => {
res.refcount--
if(res.refcount === 0){
res.unload(res.resource)
resourceList.delete(id)
}
}
}