fix a typo that broke the resourceallocator cache

the cache size is given in MiB not bytes, so we needed to convert it
to bytes.
This commit is contained in:
Mathias Agopian
2024-02-13 00:09:17 +00:00
committed by Sungun Park
parent cdd9c4aebe
commit 31b836282d
+1 -1
View File
@@ -109,7 +109,7 @@ size_t ResourceAllocator::TextureKey::getSize() const noexcept {
}
ResourceAllocator::ResourceAllocator(Engine::Config const& config, DriverApi& driverApi) noexcept
: mCacheCapacity(config.resourceAllocatorCacheSizeMB),
: mCacheCapacity(config.resourceAllocatorCacheSizeMB << 20),
mCacheMaxAge(config.resourceAllocatorCacheMaxAge),
mBackend(driverApi) {
}