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-12 16:02:20 -08:00
committed by Mathias Agopian
parent 9c6020a77a
commit 6ccfeddf26

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) {
}