Fix crash when draw 0 alpha on 0 alpha

This commit is contained in:
Oleg Korshul
2023-06-13 18:06:40 +03:00
parent 2d07e41ccf
commit ae2ab76803

View File

@ -189,6 +189,9 @@ namespace agg
unsigned alpha,
unsigned cover=0)
{
if (0 == alpha)
return;
calc_type r = p[Order::R];
calc_type g = p[Order::G];
calc_type b = p[Order::B];