Skip to content

Commit

Permalink
fix combined drawer clipping
Browse files Browse the repository at this point in the history
jabuwu committed Feb 18, 2023

Unverified

This user has not yet uploaded their public signing key.
1 parent b3743ac commit 2c7b83e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/draw/combined.rs
Original file line number Diff line number Diff line change
@@ -313,9 +313,9 @@ impl CombinedDrawer {
}
unsafe {
clipper.clip_triangles(
vertices.as_mut_slice(),
indices.as_mut_slice(),
uvs.as_mut_slice(),
&mut vertices.as_mut_slice()[(vertex_base as usize)..],
&mut indices.as_mut_slice()[(index_base as usize)..],
&mut uvs.as_mut_slice()[(vertex_base as usize)..],
2,
);
let clipped_triangles_size =

0 comments on commit 2c7b83e

Please sign in to comment.