diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-02-12 11:31:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-12 11:31:45 +0100 |
commit | 6e43bd4e8553c781f3ceb237a3384da0741d2db5 (patch) | |
tree | f9175fb4ff9c84f52732ad4ce1ba1b13085fc8f7 | |
parent | 204f9083f4222b2a6f0d6f4133541e5097802ea6 (diff) | |
parent | f752aaf970b0fa632b44dabb5d434e274b70ffdf (diff) |
Merge pull request #25623 from clayjohn/multimesh_color_bug
[GLES2] Initialize color buffer to white in gles2 multimesh
-rw-r--r-- | drivers/gles2/rasterizer_scene_gles2.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gles2/rasterizer_scene_gles2.cpp b/drivers/gles2/rasterizer_scene_gles2.cpp index 5ef21998dd..cc9084dceb 100644 --- a/drivers/gles2/rasterizer_scene_gles2.cpp +++ b/drivers/gles2/rasterizer_scene_gles2.cpp @@ -1564,6 +1564,8 @@ void RasterizerSceneGLES2::_render_geometry(RenderList::Element *p_element) { } else { 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) { |