get rid of unused span->start field
authorBrian <brian@yutani.localnet.net>
Fri, 2 Feb 2007 16:09:13 +0000 (09:09 -0700)
committerBrian <brian@yutani.localnet.net>
Fri, 2 Feb 2007 16:09:13 +0000 (09:09 -0700)
src/mesa/swrast/s_context.c
src/mesa/swrast/s_span.h

index 6e3475b130b21bdf2763d3a17b27795bca963af5..ec2f3d68b8cec86083245566b9e7c55b123ba8c8 100644 (file)
@@ -704,7 +704,6 @@ _swrast_CreateContext( GLcontext *ctx )
 
    /* init point span buffer */
    swrast->PointSpan.primitive = GL_POINT;
-   swrast->PointSpan.start = 0;
    swrast->PointSpan.end = 0;
    swrast->PointSpan.facing = 0;
    swrast->PointSpan.array = swrast->SpanArrays;
index ff91768001f6cd4c526c64fa54572feb3933c10a..c5f79871f1ba97b1d0ea2ba2873d2351d1d6225c 100644 (file)
@@ -129,9 +129,8 @@ typedef struct sw_span
 {
    GLint x, y;
 
-   /** Only need to process pixels between start <= i < end */
-   /** At this time, start is always zero. */
-   GLuint start, end;
+   /** Number of fragments in the span */
+   GLuint end;
 
    /** This flag indicates that mask[] array is effectively filled with ones */
    GLboolean writeAll;
@@ -213,7 +212,6 @@ do {                                                                \
    (S).primitive = (PRIMITIVE);                                        \
    (S).interpMask = (INTERP_MASK);                             \
    (S).arrayMask = (ARRAY_MASK);                               \
-   (S).start = 0;                                              \
    (S).end = (END);                                            \
    (S).facing = 0;                                             \
    (S).array = SWRAST_CONTEXT(ctx)->SpanArrays;                        \