diff options
author | clayjohn <claynjohn@gmail.com> | 2019-02-04 20:08:35 -0800 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2019-02-04 20:08:35 -0800 |
commit | f752aaf970b0fa632b44dabb5d434e274b70ffdf (patch) | |
tree | a52106b8bc4a2371bce169ef850290de31bd9b13 /drivers/gles2 | |
parent | 869887641f3d31f19837a34da116039a26618cb0 (diff) |
initialize color buffer to white in gles2 multimesh
Diffstat (limited to 'drivers/gles2')
-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 2c52895bda..758a10dad5 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) { |