mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 21:13:02 +01:00
Cleanup.
This commit is contained in:
@@ -171,7 +171,7 @@ namespace bgfx
|
||||
{
|
||||
#if BGFX_CONFIG_MEMORY_TRACKING
|
||||
{
|
||||
bx::LwMutexScope scope(m_mutex);
|
||||
bx::MutexScope scope(m_mutex);
|
||||
BX_CHECK(m_numBlocks > 0, "Number of blocks is 0. Possible alloc/free mismatch?");
|
||||
--m_numBlocks;
|
||||
}
|
||||
@@ -193,7 +193,7 @@ namespace bgfx
|
||||
{
|
||||
#if BGFX_CONFIG_MEMORY_TRACKING
|
||||
{
|
||||
bx::LwMutexScope scope(m_mutex);
|
||||
bx::MutexScope scope(m_mutex);
|
||||
++m_numBlocks;
|
||||
m_maxBlocks = bx::uint32_max(m_maxBlocks, m_numBlocks);
|
||||
}
|
||||
@@ -210,7 +210,7 @@ namespace bgfx
|
||||
#if BGFX_CONFIG_MEMORY_TRACKING
|
||||
if (NULL == _ptr)
|
||||
{
|
||||
bx::LwMutexScope scope(m_mutex);
|
||||
bx::MutexScope scope(m_mutex);
|
||||
++m_numBlocks;
|
||||
m_maxBlocks = bx::uint32_max(m_maxBlocks, m_numBlocks);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user