diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-02-13 19:29:06 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-02-13 19:29:06 +0000 |
| commit | 208ca9fafdbf53bb41213834bba697cad2b4ff5d (patch) | |
| tree | d8739487826900bf9de331d100f6a26ffed27f94 /Common/interface | |
| parent | Updated TraceLineThroughGrid test plus some minor comments clean-up (diff) | |
| download | DiligentCore-208ca9fafdbf53bb41213834bba697cad2b4ff5d.tar.gz DiligentCore-208ca9fafdbf53bb41213834bba697cad2b4ff5d.zip | |
FixedBlockMemoryAllocator: fixed issue with block size alignment by sizeof(void*)
Diffstat (limited to 'Common/interface')
| -rw-r--r-- | Common/interface/FixedBlockMemoryAllocator.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Common/interface/FixedBlockMemoryAllocator.hpp b/Common/interface/FixedBlockMemoryAllocator.hpp index a21e41d1..89c9e355 100644 --- a/Common/interface/FixedBlockMemoryAllocator.hpp +++ b/Common/interface/FixedBlockMemoryAllocator.hpp @@ -229,8 +229,8 @@ private: std::mutex m_Mutex; IMemoryAllocator& m_RawMemoryAllocator; - size_t m_BlockSize; - Uint32 m_NumBlocksInPage; + const size_t m_BlockSize; + const Uint32 m_NumBlocksInPage; }; IMemoryAllocator& GetRawAllocator(); |
