File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
crates/re_renderer/src/renderer Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -420,7 +420,7 @@ impl LineDrawData {
420
420
} ;
421
421
422
422
// 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 ;
424
424
let num_strips = strips. len ( ) as u32 ;
425
425
426
426
let max_texture_dimension_2d = ctx. device . limits ( ) . max_texture_dimension_2d ;
@@ -430,7 +430,7 @@ impl LineDrawData {
430
430
& data_texture_desc (
431
431
"LineDrawData::position_data_texture" ,
432
432
Self :: POSITION_DATA_TEXTURE_FORMAT ,
433
- num_line_vertices,
433
+ num_line_vertices as u32 ,
434
434
max_texture_dimension_2d,
435
435
) ,
436
436
) ;
@@ -455,7 +455,7 @@ impl LineDrawData {
455
455
456
456
let texture_size = position_data_texture. texture . size ( ) ;
457
457
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;
459
459
460
460
let mut staging_buffer = ctx. cpu_write_gpu_read_belt . lock ( ) . allocate (
461
461
& ctx. device ,
You can’t perform that action at this time.
0 commit comments