-/* $Id: s_lines.c,v 1.18 2001/05/21 18:13:43 brianp Exp $ */
+/* $Id: s_lines.c,v 1.19 2001/06/11 19:44:01 brianp Exp $ */
/*
* Mesa 3-D graphics library
{
struct pixel_buffer *PB = SWRAST_CONTEXT(ctx)->PB;
const GLchan *color = vert1->color;
+ GLuint count;
PB_SET_COLOR( PB, color[0], color[1], color[2], color[3] );
if (ctx->Line.StippleFlag) {
#define INTERP_FOG 1
#define WIDE 1
#define STIPPLE 1
-#define PLOT(X,Y) PB_WRITE_PIXEL(PB, X, Y, Z, fog0);
+#define PLOT(X,Y) \
+ PB_WRITE_PIXEL(PB, X, Y, Z, fog0); \
+ count = PB->count; \
+ CHECK_FULL(count);
#include "s_linetemp.h"
}
else {
#define INTERP_Z 1
#define INTERP_FOG 1
#define WIDE 1
-#define PLOT(X,Y) PB_WRITE_PIXEL(PB, X, Y, Z, fog0);
+#define PLOT(X,Y) \
+ PB_WRITE_PIXEL(PB, X, Y, Z, fog0); \
+ count = PB->count; \
+ CHECK_FULL(count);
#include "s_linetemp.h"
}
}