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:
committed by
Mathias Agopian
parent
9c6020a77a
commit
6ccfeddf26
@@ -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) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user