summaryrefslogtreecommitdiff
path: root/drivers/gles3
diff options
context:
space:
mode:
authorBruno Lourenço <madequa@users.noreply.github.com>2019-12-28 18:35:23 +0000
committerBruno Lourenço <madequa@users.noreply.github.com>2019-12-28 18:38:25 +0000
commit16429a4289e9738db2e451279699f35b42536527 (patch)
treeb0db1c43feda61c4272eda13b3c42c998ca14af8 /drivers/gles3
parent318c69351624f7794c51b5385d252af397c0404a (diff)
Reset GLES3 MultiMesh buffer id when reallocating.
Diffstat (limited to 'drivers/gles3')
-rw-r--r--drivers/gles3/rasterizer_storage_gles3.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp
index 07d7416905..a0628a24dd 100644
--- a/drivers/gles3/rasterizer_storage_gles3.cpp
+++ b/drivers/gles3/rasterizer_storage_gles3.cpp
@@ -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;