bugfix
This commit is contained in:
@ -25,14 +25,20 @@ extern u32 b3_convexCalls, b3_convexCacheHits;
|
|||||||
extern u32 b3_gjkCalls, b3_gjkIters, b3_gjkMaxIters;
|
extern u32 b3_gjkCalls, b3_gjkIters, b3_gjkMaxIters;
|
||||||
extern bool b3_convexCache;
|
extern bool b3_convexCache;
|
||||||
|
|
||||||
|
static bool push_ok = false;
|
||||||
|
|
||||||
void b3BeginProfileScope(const char* name)
|
void b3BeginProfileScope(const char* name)
|
||||||
{
|
{
|
||||||
g_profiler->PushEvent(name);
|
push_ok = g_profiler->PushEvent(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
void b3EndProfileScope()
|
void b3EndProfileScope()
|
||||||
|
{
|
||||||
|
if (push_ok)
|
||||||
{
|
{
|
||||||
g_profiler->PopEvent();
|
g_profiler->PopEvent();
|
||||||
|
push_ok = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Test::Test() :
|
Test::Test() :
|
||||||
|
Reference in New Issue
Block a user