summaryrefslogtreecommitdiffstats
path: root/source/core/slang-free-list.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2018-04-03 12:25:51 -0400
committerTim Foley <tfoleyNV@users.noreply.github.com>2018-04-03 09:25:51 -0700
commit3115ba7a3640937df01ecf60f7ff55f71a3ab7c2 (patch)
treee92edd95391270df3afdd1c0bc36aebf16e5994e /source/core/slang-free-list.cpp
parent499e2586cba2a7ba2a703b90c459b24620e351ee (diff)
Fixes based on review of feature/dx12 PR. (#473)
Diffstat (limited to 'source/core/slang-free-list.cpp')
-rw-r--r--source/core/slang-free-list.cpp2
1 files changed, 1 insertions, 1 deletions
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;