We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6ce65b2 + 9909e44 commit a82bad9Copy full SHA for a82bad9
renderer/src/tiler.rs
@@ -287,10 +287,16 @@ fn process_line_segment(line_segment: LineSegment2F,
287
match next_step_direction {
288
None => break,
289
Some(StepDirection::X) => {
290
+ if tile_coords.x() == to_tile_coords.x() {
291
+ break;
292
+ }
293
t_max += vec2f(t_delta.x(), 0.0);
294
tile_coords += vec2i(step.x(), 0);
295
}
296
Some(StepDirection::Y) => {
297
+ if tile_coords.y() == to_tile_coords.y() {
298
299
300
t_max += vec2f(0.0, t_delta.y());
301
tile_coords += vec2i(0, step.y());
302
0 commit comments