summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-02-19 20:08:52 -0700
committerBrian Paul <[email protected]>2012-02-24 08:03:06 -0700
commited65c5ccc3d15c350965f669d6891813c0ba8bcc (patch)
tree18ab82effe89bab9116ac49505e61dd2a8dfc3c8 /src/mesa/swrast
parent30ea34a8d9ad22be626c24aa660a80f2e08c1e24 (diff)
swrast: remove MAX_WIDTH array in s_span.c
Diffstat (limited to 'src/mesa/swrast')
-rw-r--r--src/mesa/swrast/s_span.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c
index 025e7b2076d..5cdb8ed23c8 100644
--- a/src/mesa/swrast/s_span.c
+++ b/src/mesa/swrast/s_span.c
@@ -1319,7 +1319,8 @@ _swrast_write_rgba_span( struct gl_context *ctx, SWspan *span)
/* color[fragOutput] will be written to buffer[buf] */
if (rb) {
- GLchan rgbaSave[MAX_WIDTH][4];
+ /* re-use one of the attribute array buffers for rgbaSave */
+ GLchan (*rgbaSave)[4] = (GLchan (*)[4]) span->array->attribs[0];
struct swrast_renderbuffer *srb = swrast_renderbuffer(rb);
GLenum colorType = srb->ColorType;