From 3115ba7a3640937df01ecf60f7ff55f71a3ab7c2 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 3 Apr 2018 12:25:51 -0400 Subject: Fixes based on review of feature/dx12 PR. (#473) --- source/core/slang-free-list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/core/slang-free-list.cpp b/source/core/slang-free-list.cpp index 0701558aa..4bada9434 100644 --- a/source/core/slang-free-list.cpp +++ b/source/core/slang-free-list.cpp @@ -33,7 +33,7 @@ void FreeList::_init(size_t elementSize, size_t alignment, size_t elemsPerBlock) // Alignment must be a power of 2 assert(((alignment - 1) & alignment) == 0); - // The elementSize must at least be + // The elementSize must at least be at least the same size as the alignment elementSize = (elementSize >= alignment) ? elementSize : alignment; m_blockSize = elementSize * elemsPerBlock; m_elementSize = elementSize; -- cgit v1.2.3