Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Oct 7, 2024
1 parent af4fd85 commit 8610b32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderers/opengl/renderer.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
(let* ((ax (alloy:pxx a)) (ay (alloy:pxy a))
(bx (alloy:pxx b)) (by (alloy:pxy b))
(ux (- (- by ay))) (uy (- bx ax))
(len (sqrt (+ (* ux ux) (* uy uy)))))
(len (max 0.00001 (sqrt (+ (* ux ux) (* uy uy))))))
(setf ux (/ ux len))
(setf uy (/ uy len))
(join ax ay bx by ux uy tt))
Expand Down

0 comments on commit 8610b32

Please sign in to comment.