From f752aaf970b0fa632b44dabb5d434e274b70ffdf Mon Sep 17 00:00:00 2001 From: clayjohn Date: Mon, 4 Feb 2019 20:08:35 -0800 Subject: [PATCH] initialize color buffer to white in gles2 multimesh --- drivers/gles2/rasterizer_scene_gles2.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gles2/rasterizer_scene_gles2.cpp b/drivers/gles2/rasterizer_scene_gles2.cpp index 2c52895bda8..758a10dad50 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) {