summaryrefslogtreecommitdiffstats
path: root/Common/src
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-10-11 02:28:54 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-10-11 02:28:54 +0000
commit91aac63f651da1079be93d2fe722cd10e4e15570 (patch)
treea342deebcf83a91fac3b35587860e2f2017c1637 /Common/src
parentformating (diff)
downloadDiligentCore-91aac63f651da1079be93d2fe722cd10e4e15570.tar.gz
DiligentCore-91aac63f651da1079be93d2fe722cd10e4e15570.zip
A number of corrections for PSO refactoring
Diffstat (limited to 'Common/src')
-rw-r--r--Common/src/FixedBlockMemoryAllocator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Common/src/FixedBlockMemoryAllocator.cpp b/Common/src/FixedBlockMemoryAllocator.cpp
index e4dc53d3..eb8ca3d1 100644
--- a/Common/src/FixedBlockMemoryAllocator.cpp
+++ b/Common/src/FixedBlockMemoryAllocator.cpp
@@ -50,6 +50,8 @@ FixedBlockMemoryAllocator::FixedBlockMemoryAllocator(IMemoryAllocator& RawMemory
m_NumBlocksInPage {NumBlocksInPage }
// clang-format on
{
+ VERIFY_EXPR(BlockSize > 0);
+
// Allocate one page
CreateNewPage();
}
@@ -74,8 +76,6 @@ void FixedBlockMemoryAllocator::CreateNewPage()
void* FixedBlockMemoryAllocator::Allocate(size_t Size, const Char* dbgDescription, const char* dbgFileName, const Int32 dbgLineNumber)
{
- VERIFY_EXPR(Size > 0);
-
Size = AdjustBlockSize(Size);
VERIFY(m_BlockSize == Size, "Requested size (", Size, ") does not match the block size (", m_BlockSize, ")");