fix wrong loop condition in MultiMesh allocation
(cherry picked from commit 3d33da19bd
)
This commit is contained in:
parent
493e220ab9
commit
4b69ed4124
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue