Skip to content

Commit

Permalink
?
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Dec 9, 2024
1 parent edc14bb commit eeb669f
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 @@ -555,7 +555,7 @@
(simple:translate renderer extent)
(setf (uniform shader "transform") (simple:transform-matrix renderer)))
(setf (uniform shader "size") extent)
(let ((min (* 0.5 (min (alloy:pxw extent) (alloy:pxh extent)))))
(let ((min (* 0.5 (min (abs (alloy:pxw extent)) (abs (alloy:pxh extent))))))
(setf (uniform shader "corner_radius[0]") 0.0)
(setf (uniform shader "corner_radius[1]") (if round-p (min min (alloy:to-px (aref corner-radii 0))) 0.0))
(setf (uniform shader "corner_radius[2]") (if round-p (min min (alloy:to-px (aref corner-radii 1))) 0.0))
Expand Down

0 comments on commit eeb669f

Please sign in to comment.