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