mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
It was still crashing as the thisptr should actually be passed into the alloc callback. Changed and the function call is now identical to engine's impl. Tested in Debug, Profile and Release, Release has also been tested with LTCG.
20 lines
652 B
C++
20 lines
652 B
C++
//=============================================================================//
|
|
//
|
|
// Purpose:
|
|
//
|
|
//=============================================================================//
|
|
#include "tier0/tslist.h"
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Purpose: constructor
|
|
// Input : *pAllocCallback -
|
|
// *pFreeCallback -
|
|
//-----------------------------------------------------------------------------
|
|
CAlignedMemAlloc::CAlignedMemAlloc(FnAlloc_t pAllocCallback, FnFree_t pFreeCallback)
|
|
{
|
|
m_pAllocCallback = pAllocCallback;
|
|
m_pFreeCallback = pFreeCallback;
|
|
}
|
|
|
|
CAlignedMemAlloc* g_pAlignedMemAlloc;
|