Fix gcc & clang Compile for FrameAllocator changes

This commit is contained in:
James Urquhart 2024-02-07 00:05:14 +00:00
parent 45898694e4
commit 28ba2f2473

View file

@ -152,6 +152,7 @@ public:
///
template<typename T> class ManagedAlignedBufferAllocator : public AlignedBufferAllocator<T>
{
typedef AlignedBufferAllocator<T> 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<T>::initWithElements(mMemory, frameSize);
}
void destroy()
{
//setPositition(0);
Parent::setPosition(0);
delete[] mMemory;
mMemory = NULL;
}