Skip to content

Commit d17de6c

Browse files
authored
Fix panic due to malformed mesh in specialized_mesh_pipeline (#15899)
# Objective Fixes #15891 ## Solution Just remove the invalid triangle. I'm assuming that line of code was originally copied from one that was drawing a quad. ## Testing - `cargo run --example specialized_mesh_pipeline` - hover over over the triangles Tested on macos
1 parent f602eda commit d17de6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/shader/specialized_mesh_pipeline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fn setup(mut commands: Commands, mut meshes: ResMut<Assets<Mesh>>) {
5353
PrimitiveTopology::TriangleList,
5454
RenderAssetUsages::default(),
5555
)
56-
.with_inserted_indices(Indices::U32(vec![0, 1, 2, 0, 2, 3]))
56+
.with_inserted_indices(Indices::U32(vec![0, 1, 2]))
5757
.with_inserted_attribute(
5858
Mesh::ATTRIBUTE_POSITION,
5959
vec![

0 commit comments

Comments
 (0)