When using a backbuffer with alpha, but alpha is not premulled, you can
get weird rendering results with halos or lens flare. This was caused by
optimize rule in alpha routine that assumed alpha==0 means color is zero.
Removed for the the halo case.
This commit is contained in:
Ton Roosendaal 2004-12-03 16:44:48 +00:00
parent 25165da42d
commit 7a686d2d7e

@ -858,11 +858,6 @@ void RE_addalphaAddfac(char *doel, char *bron, char addfac)
int c, mul;
if( doel[3]==0) {
*((unsigned int *)doel)= *((unsigned int *)bron);
return;
}
mul= 255 - (bron[3]*(255-addfac))/255;
c= ((mul*doel[0])/255)+bron[0];