diff --git a/include/glk/pointcloud_buffer.hpp b/include/glk/pointcloud_buffer.hpp index bdaee31..7e70f6b 100644 --- a/include/glk/pointcloud_buffer.hpp +++ b/include/glk/pointcloud_buffer.hpp @@ -142,7 +142,7 @@ void PointCloudBuffer::add_normals(const Eigen::Matrix* normals, i template void PointCloudBuffer::add_color(const std::vector, Allocator>& colors) { - add_color(colors[0].data(), sizeof(Eigen::Vector4f), colors.size()); + add_color(colors.data(), colors.size()); } template