There was a bug where vertex colors were not shown in solid view in draw or vertex paint mode. The check to use `V3D_SHADING_VERTEX_COLOR` was outdated and checked the wrong mode flags. The fix makes sure that we use `V3D_SHADING_VERTEX_COLOR` in draw and vertex paint mode. Pull Request: https://projects.blender.org/blender/blender/pulls/128581