diff --git a/filament/src/ResourceAllocator.cpp b/filament/src/ResourceAllocator.cpp index eeff5011a6..b8d1e6698e 100644 --- a/filament/src/ResourceAllocator.cpp +++ b/filament/src/ResourceAllocator.cpp @@ -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) { }