summaryrefslogtreecommitdiff
path: root/src/mesa/main/accum.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/accum.c')
-rw-r--r--src/mesa/main/accum.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/accum.c b/src/mesa/main/accum.c
index 2e4f7c8027..9e0bee08e7 100644
--- a/src/mesa/main/accum.c
+++ b/src/mesa/main/accum.c
@@ -1,4 +1,4 @@
-/* $Id: accum.c,v 1.3 1999/10/08 09:27:09 keithw Exp $ */
+/* $Id: accum.c,v 1.4 1999/10/10 12:40:54 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -79,13 +79,13 @@ void gl_alloc_accum_buffer( GLcontext *ctx )
GLint n;
if (ctx->Buffer->Accum) {
- free( ctx->Buffer->Accum );
+ GL_FREE( ctx->Buffer->Accum );
ctx->Buffer->Accum = NULL;
}
/* allocate accumulation buffer if not already present */
n = ctx->Buffer->Width * ctx->Buffer->Height * 4 * sizeof(GLaccum);
- ctx->Buffer->Accum = (GLaccum *) malloc( n );
+ ctx->Buffer->Accum = (GLaccum *) GL_ALLOC( n );
if (!ctx->Buffer->Accum) {
/* unable to setup accumulation buffer */
gl_error( ctx, GL_OUT_OF_MEMORY, "glAccum" );
@@ -428,7 +428,7 @@ void gl_clear_accum_buffer( GLcontext *ctx )
if (!ctx->Buffer->Accum) {
/* try to alloc accumulation buffer */
ctx->Buffer->Accum = (GLaccum *)
- malloc( buffersize * 4 * sizeof(GLaccum) );
+ GL_ALLOC( buffersize * 4 * sizeof(GLaccum) );
}
if (ctx->Buffer->Accum) {