diff --git a/filament/backend/src/vulkan/VulkanDriver.h b/filament/backend/src/vulkan/VulkanDriver.h index 3527a305e8..1d26ae8f91 100644 --- a/filament/backend/src/vulkan/VulkanDriver.h +++ b/filament/backend/src/vulkan/VulkanDriver.h @@ -31,9 +31,9 @@ #include #include +#include #include -#include namespace filament { namespace backend { @@ -81,7 +81,7 @@ private: // For now we're not bothering to store handles in pools, just simple on-demand allocation. // We have a little map from integer handles to "blobs" which get replaced with the Hw objects. - using Blob = std::vector; + using Blob = utils::FixedCapacityVector; using HandleMap = std::unordered_map; HandleMap mHandleMap; std::mutex mHandleMapMutex; @@ -90,7 +90,7 @@ private: template Handle alloc_handle() { std::lock_guard lock(mHandleMapMutex); - mHandleMap[mNextId] = Blob(sizeof(Dp)); + mHandleMap[mNextId] = Blob(sizeof(Dp), 0); return Handle(mNextId++); }