We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32ef8ce commit 27f861aCopy full SHA for 27f861a
1 file changed
src/physics/DebugRenderer/DebugRenderer.cpp
@@ -50,18 +50,16 @@ namespace vg::physics
50
//--------------------------------------------------------------------------------------
51
void DebugRenderer::init()
52
{
53
- VG_ASSERT(!m_initDone);
54
- Initialize();
55
- m_initDone = true;
+ if (!m_initDone)
+ {
+ Initialize();
56
+ m_initDone = true;
57
+ }
58
}
59
60
61
void DebugRenderer::deinit()
62
- if (m_initDone)
- {
63
- m_initDone = false;
64
- }
65
66
67
0 commit comments