fix references to non-existant sz4 field
authorRichard Hughes <hughsient@gmail.com>
Sat, 7 Apr 2007 14:46:44 +0000 (08:46 -0600)
committerBrian <brian@yutani.localnet.net>
Sat, 7 Apr 2007 14:46:44 +0000 (08:46 -0600)
src/mesa/swrast/s_context.c
src/mesa/swrast/s_zoom.c

index 00702b43013121d2583b513dbf47227bc5985401..e113adb68928bfc89238e665c621e67ef7d4438c 100644 (file)
@@ -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 */
index 9bec0bb1a1c8ab737ad670ba900c4ca53c3b8407..1fac7498aa8342b88bd554c0583413b4c06338ff 100644 (file)
@@ -153,8 +153,8 @@ zoom_span( GLcontext *ctx, GLint imgX, GLint imgY, const SWspan *span,
    zoomed_arrays.rgba = zoomed_arrays.color.sz2.rgba;
    zoomed_arrays.spec = zoomed_arrays.color.sz2.spec;
 #else
-   zoomed_arrays.rgba = zoomed_arrays.color.sz4.rgba;
-   zoomed_arrays.spec = zoomed_arrays.color.sz4.spec;
+   zoomed_arrays.rgba = zoomed_arrays.attribs[FRAG_ATTRIB_COL0];
+   zoomed_arrays.spec = zoomed_arrays.attribs[FRAG_ATTRIB_COL1];
 #endif