From 31712743cae72f5ea43aad140cd2df4f1a385364 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Thu, 16 Feb 2023 20:51:23 -0500 Subject: Use discard form in path shaders. --- chickadee/graphics/path.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chickadee/graphics/path.scm b/chickadee/graphics/path.scm index f6bfcdb..e2952dd 100644 --- a/chickadee/graphics/path.scm +++ b/chickadee/graphics/path.scm @@ -1250,7 +1250,7 @@ (uniform int stroke-cap) (uniform float stroke-miter-limit)) (if (<= (-> color w) 0.0) - (outputs) + (discard) (let* ((infinity (/ 1.0 0.0)) (hw (/ stroke-width 2.0)) (u (-> frag-tex x)) @@ -1323,7 +1323,7 @@ 0.0 1.0))) (mix color end-color t))))) (if (<= (-> color w) 0.0) - (outputs) + (discard) (outputs (frag-color (case mode -- cgit v1.2.3