fix references to non-existant sz4 field

This commit is contained in:
Richard Hughes
2007-04-07 08:46:44 -06:00
committed by Brian
parent 84803279ca
commit 4f9d3a07bb
2 changed files with 4 additions and 4 deletions
+2 -2
View 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 */
+2 -2
View 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