mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-08-28 05:58:35 +00:00
Merge pull request #3348 from erwincoumans/master
disable texture release, it causes crashes, need to figure out better…
This commit is contained in:
@@ -398,14 +398,15 @@ void GLInstancingRenderer::removeAllInstances()
|
||||
m_data->m_publicGraphicsInstances.exitHandles();
|
||||
m_data->m_publicGraphicsInstances.initHandles();
|
||||
|
||||
#if 0
|
||||
//todo: cannot release ALL textures, since some handles are still kept, and it would cause a crash
|
||||
for (int i=0;i<m_data->m_textureHandles.size();i++)
|
||||
{
|
||||
InternalTextureHandle& h = m_data->m_textureHandles[i];
|
||||
glDeleteTextures(1, &h.m_glTexture);
|
||||
}
|
||||
|
||||
m_data->m_textureHandles.clear();
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
GLInstancingRenderer::~GLInstancingRenderer()
|
||||
|
||||
Reference in New Issue
Block a user