Skip to content

Commit 13e7117

Browse files
committed
fix silly compilation error
1 parent f0547c2 commit 13e7117

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/re_renderer/src/renderer/lines.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ impl LineDrawData {
420420
};
421421

422422
// Add a sentinel vertex both at the beginning and the end to make cap calculation easier.
423-
let num_line_vertices = vertices.len() as u32 + NUM_SENTINEL_VERTICES;
423+
let num_line_vertices = vertices.len() + NUM_SENTINEL_VERTICES;
424424
let num_strips = strips.len() as u32;
425425

426426
let max_texture_dimension_2d = ctx.device.limits().max_texture_dimension_2d;
@@ -430,7 +430,7 @@ impl LineDrawData {
430430
&data_texture_desc(
431431
"LineDrawData::position_data_texture",
432432
Self::POSITION_DATA_TEXTURE_FORMAT,
433-
num_line_vertices,
433+
num_line_vertices as u32,
434434
max_texture_dimension_2d,
435435
),
436436
);
@@ -455,7 +455,7 @@ impl LineDrawData {
455455

456456
let texture_size = position_data_texture.texture.size();
457457
let texel_count = (texture_size.width * texture_size.height) as usize;
458-
let num_elements_padding = texel_count - num_line_vertices as usize;
458+
let num_elements_padding = texel_count - num_line_vertices;
459459

460460
let mut staging_buffer = ctx.cpu_write_gpu_read_belt.lock().allocate(
461461
&ctx.device,

0 commit comments

Comments
 (0)