Merge pull request #3348 from erwincoumans/master

disable texture release, it causes crashes, need to figure out better…
This commit is contained in:
erwincoumans
2021-04-15 20:30:13 -07:00
committed by GitHub

View File

@@ -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()