check for valid debugdrawer before using it
This commit is contained in:
@@ -519,7 +519,7 @@ bool CcdPhysicsEnvironment::proceedDeltaTime(double curTime,float timeStep)
|
|||||||
|
|
||||||
#ifdef USE_QUICKPROF
|
#ifdef USE_QUICKPROF
|
||||||
//toggle Profiler
|
//toggle Profiler
|
||||||
if ( m_debugDrawer->GetDebugMode() & IDebugDraw::DBG_ProfileTimings)
|
if ( m_debugDrawer && m_debugDrawer->GetDebugMode() & IDebugDraw::DBG_ProfileTimings)
|
||||||
{
|
{
|
||||||
if (!m_profileTimings)
|
if (!m_profileTimings)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user