From 28ba2f247321b40bf4979b84d80ddfb7bc2532d5 Mon Sep 17 00:00:00 2001 From: James Urquhart Date: Wed, 7 Feb 2024 00:05:14 +0000 Subject: [PATCH] Fix gcc & clang Compile for FrameAllocator changes --- Engine/source/core/frameAllocator.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; }