A PagedVolume must now always be provided with a Pager when it is constructed.

This commit is contained in:
David Williams
2015-03-07 17:01:07 +01:00
parent 5a5b2b3875
commit aaa6b1dc15
4 changed files with 20 additions and 29 deletions

View File

@ -249,7 +249,7 @@ namespace PolyVox
public:
/// Constructor for creating a fixed size volume.
PagedVolume(Pager* pPager = nullptr, uint32_t uTargetMemoryUsageInBytes = 256 * 1024 * 1024, uint16_t uChunkSideLength = 32);
PagedVolume(Pager* pPager, uint32_t uTargetMemoryUsageInBytes = 256 * 1024 * 1024, uint16_t uChunkSideLength = 32);
/// Destructor
~PagedVolume();
@ -319,7 +319,7 @@ namespace PolyVox
uint8_t m_uChunkSideLengthPower;
int32_t m_iChunkMask;
Pager* m_pPager;
Pager* m_pPager = nullptr;
};
}