Skip to content

Commit

Permalink
Merge pull request #83100 from kleonc/immediate-mesh-vertex-buffer-si…
Browse files Browse the repository at this point in the history
…ze-fiz

Fix incorrect vertex data size calculation in `ImmediateMesh`
  • Loading branch information
akien-mga committed Oct 10, 2023
2 parents b6c351c + b588d1a commit d0301fc
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 d0301fc

Please sign in to comment.