Merge pull request #20092 from karroffel/gles3-multimesh-fix

fix wrong loop condition in MultiMesh allocation
This commit is contained in:
Juan Linietsky 2018-07-11 08:43:58 -03:00 committed by GitHub
commit 1b78b664cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3862,7 +3862,7 @@ void RasterizerStorageGLES3::multimesh_allocate(RID p_multimesh, int 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 custom_data_from = 0;