/*
* Mesa 3-D graphics library
- * Version: 5.1
+ * Version: 6.3
*
- * Copyright (C) 1999-2003 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2004 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
ASSERT(span->end < MAX_WIDTH);
- width = (GLint) CLAMP( ctx->Line.Width, MIN_LINE_WIDTH, MAX_LINE_WIDTH );
+ width = (GLint) CLAMP( ctx->Line._Width, MIN_LINE_WIDTH, MAX_LINE_WIDTH );
if (width & 1)
start = width / 2;
for (i = 0; i < span->end; i++)
y[i]++;
}
- if ((span->interpMask | span->arrayMask) & SPAN_TEXTURE)
- _swrast_write_texture_span(ctx, span);
- else if ((span->interpMask | span->arrayMask) & SPAN_RGBA)
+ if (ctx->Visual.rgbMode)
_swrast_write_rgba_span(ctx, span);
else
_swrast_write_index_span(ctx, span);
for (i = 0; i < span->end; i++)
x[i]++;
}
- if ((span->interpMask | span->arrayMask) & SPAN_TEXTURE)
- _swrast_write_texture_span(ctx, span);
- else if ((span->interpMask | span->arrayMask) & SPAN_RGBA)
+ if (ctx->Visual.rgbMode)
_swrast_write_rgba_span(ctx, span);
else
_swrast_write_index_span(ctx, span);
span.arrayMask |= SPAN_MASK; \
compute_stipple_mask(ctx, span.end, span.array->mask); \
} \
- if (ctx->Line.Width > 1.0) { \
+ if (ctx->Line._Width > 1.0) { \
draw_wide_line(ctx, &span, (GLboolean)(dx > dy)); \
} \
else { \
span.arrayMask |= SPAN_MASK; \
compute_stipple_mask(ctx, span.end, span.array->mask); \
} \
- if (ctx->Line.Width > 1.0) { \
+ if (ctx->Line._Width > 1.0) { \
draw_wide_line(ctx, &span, (GLboolean)(dx > dy)); \
} \
else { \
span.arrayMask |= SPAN_MASK; \
compute_stipple_mask(ctx, span.end, span.array->mask); \
} \
- if (ctx->Line.Width > 1.0) { \
+ if (ctx->Line._Width > 1.0) { \
draw_wide_line(ctx, &span, (GLboolean)(dx > dy)); \
} \
else { \
- _swrast_write_texture_span(ctx, &span); \
+ _swrast_write_rgba_span(ctx, &span); \
}
#include "s_linetemp.h"
span.arrayMask |= SPAN_MASK; \
compute_stipple_mask(ctx, span.end, span.array->mask); \
} \
- if (ctx->Line.Width > 1.0) { \
+ if (ctx->Line._Width > 1.0) { \
draw_wide_line(ctx, &span, (GLboolean)(dx > dy)); \
} \
else { \
- _swrast_write_texture_span(ctx, &span); \
+ _swrast_write_rgba_span(ctx, &span); \
}
#include "s_linetemp.h"
USE(textured_line);
}
}
- else if (ctx->Depth.Test || ctx->Fog.Enabled || ctx->Line.Width != 1.0
+ else if (ctx->Depth.Test || ctx->Fog.Enabled || ctx->Line._Width != 1.0
|| ctx->Line.StippleFlag) {
/* no texture, but Z, fog, width>1, stipple, etc. */
if (rgbmode)