From: Richard Hughes Date: Sat, 7 Apr 2007 14:46:44 +0000 (-0600) Subject: fix references to non-existant sz4 field X-Git-Tag: 062012170305~19642 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f9d3a07bbe731709e6819448d21dee609a37806;p=profile%2Fivi%2Fmesa.git fix references to non-existant sz4 field --- diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c index 00702b4..e113adb 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 */ diff --git a/src/mesa/swrast/s_zoom.c b/src/mesa/swrast/s_zoom.c index 9bec0bb..1fac749 100644 --- a/src/mesa/swrast/s_zoom.c +++ b/src/mesa/swrast/s_zoom.c @@ -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