Fix multimesh being colored by other nodes GLES3

(cherry picked from commit 92bf493821)
This commit is contained in:
clayjohn 2021-04-02 14:01:47 -07:00 committed by Rémi Verschelde
parent 22c9ef8f0f
commit a384ffa2b0
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -902,6 +902,8 @@ void RasterizerCanvasGLES3::render_batches(Item *p_current_clip, bool &r_reclip,
amount = multi_mesh->size;
}
glVertexAttrib4f(VS::ARRAY_COLOR, 1.0, 1.0, 1.0, 1.0);
for (int j = 0; j < mesh_data->surfaces.size(); j++) {
RasterizerStorageGLES3::Surface *s = mesh_data->surfaces[j];
// materials are ignored in 2D meshes, could be added but many things (ie, lighting mode, reading from screen, etc) would break as they are not meant be set up at this point of drawing