Reset GLES3 MultiMesh buffer id when reallocating.

This commit is contained in:
Bruno Lourenço 2019-12-28 18:35:23 +00:00
parent 318c693516
commit 16429a4289

View file

@ -4454,6 +4454,7 @@ void RasterizerStorageGLES3::multimesh_allocate(RID p_multimesh, int p_instances
if (multimesh->buffer) {
glDeleteBuffers(1, &multimesh->buffer);
multimesh->data.resize(0);
multimesh->buffer = 0;
}
multimesh->size = p_instances;