Merge pull request #25623 from clayjohn/multimesh_color_bug

[GLES2] Initialize color buffer to white in gles2 multimesh
This commit is contained in:
Rémi Verschelde 2019-02-12 11:31:45 +01:00 committed by GitHub
commit 6e43bd4e85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1564,6 +1564,8 @@ void RasterizerSceneGLES2::_render_geometry(RenderList::Element *p_element) {
} else { } else {
glVertexAttrib4fv(INSTANCE_ATTRIB_BASE + 3, buffer + color_ofs); glVertexAttrib4fv(INSTANCE_ATTRIB_BASE + 3, buffer + color_ofs);
} }
} else {
glVertexAttrib4f(INSTANCE_ATTRIB_BASE + 3, 1.0, 1.0, 1.0, 1.0);
} }
if (multi_mesh->custom_data_floats) { if (multi_mesh->custom_data_floats) {