Skip to content

Commit

Permalink
trail: Fix incorrect Mesh constructor call
Browse files Browse the repository at this point in the history
  • Loading branch information
mrxz committed Mar 16, 2023
1 parent 59125dc commit 13d0d21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trail.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class Trail extends Component {
.set([i + 1, i + 0, i + 2, i + 2, i + 3, i + 1]);
}

this.mesh = new Mesh({
this.mesh = new Mesh(this.engine, {
vertexCount: vertexCount,
indexData: this.indexData,
indexType: MeshIndexType.UnsignedInt,
Expand Down

0 comments on commit 13d0d21

Please sign in to comment.