diff options
author | Brian Paul <[email protected]> | 2005-09-06 02:44:00 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-09-06 02:44:00 +0000 |
commit | 3622f4f27fe51edff0717e4a42623f62e2936e90 (patch) | |
tree | 9ccf51420713e1485244eadfbaefac6acc723426 /src/mesa/swrast/s_readpix.c | |
parent | fcb6a0fa3e1ff351b2613e4f7f4ab5bc91e6c95d (diff) |
don't use DEFARRAY/CHECKARRAY stuff
Diffstat (limited to 'src/mesa/swrast/s_readpix.c')
-rw-r--r-- | src/mesa/swrast/s_readpix.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/swrast/s_readpix.c b/src/mesa/swrast/s_readpix.c index 82322c766c3..61ad2c252ea 100644 --- a/src/mesa/swrast/s_readpix.c +++ b/src/mesa/swrast/s_readpix.c @@ -473,15 +473,13 @@ read_rgba_pixels( GLcontext *ctx, * there. This fixes conformance failures with 16-bit color * buffers, for example. */ - DEFMARRAY(GLfloat, rgbaf, MAX_WIDTH, 4); /* mac 32k limitation */ - CHECKARRAY(rgbaf, return); /* mac 32k limitation */ + GLfloat rgbaf[MAX_WIDTH][4]; _mesa_chan_to_float_span(ctx, readWidth, (CONST GLchan (*)[4]) rgba, rgbaf); _mesa_pack_rgba_span_float(ctx, readWidth, (CONST GLfloat (*)[4]) rgbaf, format, type, dst, packing, ctx->_ImageTransferState); - UNDEFARRAY(rgbaf); /* mac 32k limitation */ } else { /* GLubytes are fine */ |