Fixed wrong vertex buffer element count bug.
This commit is contained in:
@@ -33,7 +33,12 @@ void zgl::mesh_vertex_buffer_manager::process(store_type& store)
|
||||
std::apply(
|
||||
[&](const auto&... component_buffers)
|
||||
{
|
||||
vertex_buffer_utils::interlace(m_byte_buffer, mesh.component_flags, component_buffers...);
|
||||
vertex_buffer_utils::interlace(
|
||||
m_byte_buffer,
|
||||
mesh.component_flags,
|
||||
mesh.vertex_count,
|
||||
component_buffers...
|
||||
);
|
||||
},
|
||||
mesh.vertex_component_arrays
|
||||
);
|
||||
|
||||
@@ -33,7 +33,12 @@ void zgl::point_cloud_vertex_buffer_manager::process(store_type& store)
|
||||
std::apply(
|
||||
[&](const auto&... component_buffers)
|
||||
{
|
||||
vertex_buffer_utils::interlace(m_byte_buffer, point_cloud.vertex_component_flags, component_buffers...);
|
||||
vertex_buffer_utils::interlace(
|
||||
m_byte_buffer,
|
||||
point_cloud.vertex_component_flags,
|
||||
point_cloud.point_count,
|
||||
component_buffers...
|
||||
);
|
||||
},
|
||||
point_cloud.vertex_component_arrays
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user