diff --git a/Engine/source/core/frameAllocator.h b/Engine/source/core/frameAllocator.h index f9546dae9..7d09f2b86 100644 --- a/Engine/source/core/frameAllocator.h +++ b/Engine/source/core/frameAllocator.h @@ -152,6 +152,7 @@ public: /// template class ManagedAlignedBufferAllocator : public AlignedBufferAllocator { +typedef AlignedBufferAllocator Parent; public: T* mMemory; @@ -167,14 +168,14 @@ public: void init(const dsize_t byteSize) { AssertFatal(mMemory == NULL, "ManagedAlignedBufferAllocator already initialized"); - U32 frameSize = calcRequiredElementSize(byteSize); + U32 frameSize = Parent::calcRequiredElementSize(byteSize); mMemory = new U32[frameSize]; - initWithElements(mMemory, frameSize); + AlignedBufferAllocator::initWithElements(mMemory, frameSize); } void destroy() { - //setPositition(0); + Parent::setPosition(0); delete[] mMemory; mMemory = NULL; }