From 7e91f911ca901437e043e9b928aa3d64a3e7593a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Micha=C3=ABl=20Celerier?= Date: Sun, 4 Feb 2024 20:45:20 -0500 Subject: [PATCH] Circle Warp.fs: fix uninitialized value causing garbage on some drivers e.g. on linux with Mesa, inputPixelColor being uninitialized causes a garbled background around the circle. --- ISF/Circle Warp.fs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ISF/Circle Warp.fs b/ISF/Circle Warp.fs index 9462fa5..f3aff39 100644 --- a/ISF/Circle Warp.fs +++ b/ISF/Circle Warp.fs @@ -72,6 +72,8 @@ void main() { pt.y /= 2.0*sqrt(pow(radius,2.0)-pow((pt.x-0.5),2.0)); pt.y += 0.5; inputPixelColor = IMG_NORM_PIXEL(inputImage,pt); + } else { + inputPixelColor = vec4(0.0); } gl_FragColor = inputPixelColor;