Skip to content

Commit

Permalink
Fix incorrect vertex data size calculation in ImmediateMesh
Browse files Browse the repository at this point in the history
  • Loading branch information
kleonc committed Oct 10, 2023
1 parent b931a6e commit b588d1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/resources/immediate_mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ void ImmediateMesh::surface_end() {
AABB aabb;

{
surface_vertex_create_cache.resize(vertex_stride * vertices.size());
surface_vertex_create_cache.resize((vertex_stride + normal_tangent_stride) * vertices.size());
uint8_t *surface_vertex_ptr = surface_vertex_create_cache.ptrw();
for (uint32_t i = 0; i < vertices.size(); i++) {
{
Expand Down

0 comments on commit b588d1a

Please sign in to comment.