From d178167c3bc41305ab57b43fb029099b8ce69fb6 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sun, 28 Jul 2019 13:25:00 -0700 Subject: [PATCH] ui/app/internal/gpu: add workaround for render corruption Fixes gio#13 Signed-off-by: Elias Naur --- ui/app/internal/gpu/path.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/app/internal/gpu/path.go b/ui/app/internal/gpu/path.go index a9182933..fb12198b 100644 --- a/ui/app/internal/gpu/path.go +++ b/ui/app/internal/gpu/path.go @@ -480,6 +480,10 @@ void main() { float area = 0.5*(sides.z - sides.z*sides.y + 1.0 - sides.x+sides.x*sides.w); area *= width; + // Work around issue #13. + if (width == 0.0) + area = 0.0; + gl_FragColor.r = area; } `