PyBullet eglPlugin:
use -1 as default egl render device clear m_cachedVisualShapes at reset
This commit is contained in:
@@ -216,7 +216,7 @@ struct EGLRendererVisualShapeConverterInternalData
|
|||||||
ci.m_title = "PyBullet";
|
ci.m_title = "PyBullet";
|
||||||
ci.m_width = m_swWidth;
|
ci.m_width = m_swWidth;
|
||||||
ci.m_height = m_swHeight;
|
ci.m_height = m_swHeight;
|
||||||
ci.m_renderDevice = 0;
|
ci.m_renderDevice = -1;
|
||||||
|
|
||||||
m_window->createWindow(ci);
|
m_window->createWindow(ci);
|
||||||
m_window->setWindowTitle(ci.m_title);
|
m_window->setWindowTitle(ci.m_title);
|
||||||
@@ -1600,6 +1600,7 @@ void EGLRendererVisualShapeConverter::resetAll()
|
|||||||
m_data->m_visualShapes.clear();
|
m_data->m_visualShapes.clear();
|
||||||
m_data->m_graphicsIndexToSegmentationMask.clear();
|
m_data->m_graphicsIndexToSegmentationMask.clear();
|
||||||
m_data->m_instancingRenderer->removeAllInstances();
|
m_data->m_instancingRenderer->removeAllInstances();
|
||||||
|
m_data->m_cachedVisualShapes.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void EGLRendererVisualShapeConverter::changeShapeTexture(int objectUniqueId, int jointIndex, int shapeIndex, int textureUniqueId)
|
void EGLRendererVisualShapeConverter::changeShapeTexture(int objectUniqueId, int jointIndex, int shapeIndex, int textureUniqueId)
|
||||||
|
|||||||
Reference in New Issue
Block a user