fix wrong loop condition in MultiMesh allocation

(cherry picked from commit 3d33da19bd)
This commit is contained in:
karroffel 2018-07-10 23:13:59 +02:00 committed by Rémi Verschelde
parent 493e220ab9
commit 4b69ed4124
1 changed files with 2 additions and 1 deletions

View File

@ -3799,7 +3799,8 @@ void RasterizerStorageGLES3::multimesh_allocate(RID p_multimesh, int p_instances
int format_floats = multimesh->color_floats + multimesh->xform_floats; int format_floats = multimesh->color_floats + multimesh->xform_floats;
multimesh->data.resize(format_floats * p_instances); multimesh->data.resize(format_floats * p_instances);
for (int i = 0; i < p_instances; i += format_floats) {
for (int i = 0; i < p_instances * format_floats; i += format_floats) {
int color_from = 0; int color_from = 0;