From 4f9d3a07bbe731709e6819448d21dee609a37806 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Sat, 7 Apr 2007 08:46:44 -0600 Subject: fix references to non-existant sz4 field --- src/mesa/swrast/s_context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa/swrast/s_context.c') diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c index 00702b4301..e113adb689 100644 --- a/src/mesa/swrast/s_context.c +++ b/src/mesa/swrast/s_context.c @@ -786,8 +786,8 @@ _swrast_CreateContext( GLcontext *ctx ) swrast->SpanArrays->rgba = swrast->SpanArrays->color.sz2.rgba; swrast->SpanArrays->spec = swrast->SpanArrays->color.sz2.spec; #else - swrast->SpanArrays->rgba = swrast->SpanArrays->color.sz4.rgba; - swrast->SpanArrays->spec = swrast->SpanArrays->color.sz4.spec; + swrast->SpanArrays->rgba = swrast->SpanArrays->attribs[FRAG_ATTRIB_COL0]; + swrast->SpanArrays->spec = swrast->SpanArrays->attribs[FRAG_ATTRIB_COL1]; #endif /* init point span buffer */ -- cgit v1.2.3