Skip to content

Commit

Permalink
Fix tesselating buffer size reduction for screen ref vertices
Browse files Browse the repository at this point in the history
  • Loading branch information
lennart authored Jun 3, 2024
1 parent 9c80deb commit d9d4368
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion galileo/src/render/render_bundle/tessellating.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@ impl TessellatingRenderBundle {
let removed_index_count =
Self::remove_from_tessellation(&mut self.screen_ref, range.clone())?;
let len = range.len();
self.buffer_size -= size_of::<PolyVertex>() * len + size_of::<u32>() * removed_index_count;
self.buffer_size -=
size_of::<ScreenRefVertex>() * len + size_of::<u32>() * removed_index_count;

for info in &mut self.primitives {
match info {
Expand Down

0 comments on commit d9d4368

Please sign in to comment.