-/* $Id: blend.c,v 1.4 1999/10/08 09:27:10 keithw Exp $ */
+/* $Id: blend.c,v 1.5 1999/10/21 12:26:21 brianp Exp $ */
/*
* Mesa 3-D graphics library
break;
default:
/* this should never happen */
+ sA = 0.0F;
gl_problem(ctx, "Bad blend source A factor in do_blend");
}
break;
default:
/* this should never happen */
+ dR = dG = dB = 0.0F;
gl_problem(ctx, "Bad blend dest RGB factor in do_blend");
}
break;
default:
/* this should never happen */
+ dA = 0.0F;
gl_problem(ctx, "Bad blend dest A factor in do_blend");
return;
}
b = Bd * dB - Bs * sB;
a = Ad * dA - As * sA;
}
+ else {
+ /* should never get here */
+ r = g = b = a = 0.0F; /* silence uninitialized var warning */
+ gl_problem(ctx, "unexpected BlendEquation in blend_general()");
+ }
/* final clamping */
rgba[i][RCOMP] = (GLint) CLAMP( r, 0.0F, 255.0F );