disable texture release, it causes crashes, need to figure out better solution

This commit is contained in:
erwin coumans
2021-04-15 20:26:01 -07:00
parent 5205dafcc2
commit 910c20334f

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