From aeb4434563c4014a662ea334878b60d3031bb3c1 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 19 Mar 2002 16:47:04 +0000 Subject: Use MESA_PBUFFER_ALLOC/FREE macros to allocate all framebuffer and texture memory. These can be overridden by applications which need to manage this memory specially. Contributed by Gerk Huisma. Also, new code for 8-bit -> 16-bit/channel texture image storage which fills in the least-significant bits properly. --- src/mesa/swrast/s_accum.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mesa/swrast/s_accum.c') diff --git a/src/mesa/swrast/s_accum.c b/src/mesa/swrast/s_accum.c index faf8313d4d1..be5c4b4a130 100644 --- a/src/mesa/swrast/s_accum.c +++ b/src/mesa/swrast/s_accum.c @@ -1,4 +1,4 @@ -/* $Id: s_accum.c,v 1.15 2002/03/16 00:53:15 brianp Exp $ */ +/* $Id: s_accum.c,v 1.16 2002/03/19 16:47:05 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -74,13 +74,13 @@ _mesa_alloc_accum_buffer( GLframebuffer *buffer ) GLint n; if (buffer->Accum) { - FREE( buffer->Accum ); + MESA_PBUFFER_FREE( buffer->Accum ); buffer->Accum = NULL; } /* allocate accumulation buffer if not already present */ n = buffer->Width * buffer->Height * 4 * sizeof(GLaccum); - buffer->Accum = (GLaccum *) MALLOC( n ); + buffer->Accum = (GLaccum *) MESA_PBUFFER_ALLOC( n ); if (!buffer->Accum) { /* unable to setup accumulation buffer */ _mesa_error( NULL, GL_OUT_OF_MEMORY, "glAccum" ); -- cgit v1.2.3