mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-14 05:40:05 +00:00
avoid an assert when removing a non-existing graphics index in debug mode
This commit is contained in:
parent
49eda303bc
commit
09caa599ff
@ -243,7 +243,10 @@ void OpenGLGuiHelper::removeAllGraphicsInstances()
|
||||
|
||||
void OpenGLGuiHelper::removeGraphicsInstance(int graphicsUid)
|
||||
{
|
||||
m_data->m_glApp->m_renderer->removeGraphicsInstance(graphicsUid);
|
||||
if (graphicsUid>=0)
|
||||
{
|
||||
m_data->m_glApp->m_renderer->removeGraphicsInstance(graphicsUid);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user