Still use named mem pool if no callstacks

Forward MemAllocCallstackNamed() and MemFreeCallstackNamed() to
MemAllocNamed() and MemFreeNamed if callstack capture is off.
This commit is contained in:
Jeff Burnett 2024-03-21 07:53:27 -05:00
parent 278330af5b
commit 18352366f7

View File

@ -605,8 +605,7 @@ public:
profiler.m_serialLock.unlock();
#else
static_cast<void>(depth); // unused
static_cast<void>(name); // unused
MemAlloc( ptr, size, secure );
MemAllocNamed( ptr, size, secure, name );
#endif
}
@ -629,8 +628,7 @@ public:
profiler.m_serialLock.unlock();
#else
static_cast<void>(depth); // unused
static_cast<void>(name); // unused
MemFree( ptr, secure );
MemFreeNamed( ptr, secure, name );
#endif
}