avoid an assert when removing a non-existing graphics index in debug mode
This commit is contained in:
@@ -243,7 +243,10 @@ void OpenGLGuiHelper::removeAllGraphicsInstances()
|
|||||||
|
|
||||||
void OpenGLGuiHelper::removeGraphicsInstance(int graphicsUid)
|
void OpenGLGuiHelper::removeGraphicsInstance(int graphicsUid)
|
||||||
{
|
{
|
||||||
|
if (graphicsUid>=0)
|
||||||
|
{
|
||||||
m_data->m_glApp->m_renderer->removeGraphicsInstance(graphicsUid);
|
m_data->m_glApp->m_renderer->removeGraphicsInstance(graphicsUid);
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user