diff --git a/data/shader/text.frag b/data/shader/text.frag index 47aa8d6cd..5b0bf408d 100644 --- a/data/shader/text.frag +++ b/data/shader/text.frag @@ -30,5 +30,8 @@ void main() float RealAlpha = (textOutlineFrag.a + textColor.a); // simply add the color we will loose through blending - FragClr = vec4(finalFragColor / RealAlpha, RealAlpha); + if(RealAlpha > 0.0) + FragClr = vec4(finalFragColor / RealAlpha, RealAlpha); + else + FragClr = vec4(0.0, 0.0, 0.0, 0.0); }