From 60a249d009acec34bd61e12f01caf7bdf87e895c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sun, 10 Oct 1999 12:51:29 +0000 Subject: now using GL_MALLOC, GL_FREE --- src/mesa/main/stencil.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mesa/main/stencil.c') diff --git a/src/mesa/main/stencil.c b/src/mesa/main/stencil.c index 95dbfbfbd1..3868a803cb 100644 --- a/src/mesa/main/stencil.c +++ b/src/mesa/main/stencil.c @@ -1,4 +1,4 @@ -/* $Id: stencil.c,v 1.4 1999/10/08 09:27:11 keithw Exp $ */ +/* $Id: stencil.c,v 1.5 1999/10/10 12:56:45 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1056,12 +1056,12 @@ void gl_alloc_stencil_buffer( GLcontext *ctx ) /* deallocate current stencil buffer if present */ if (ctx->Buffer->Stencil) { - free(ctx->Buffer->Stencil); + GL_FREE(ctx->Buffer->Stencil); ctx->Buffer->Stencil = NULL; } /* allocate new stencil buffer */ - ctx->Buffer->Stencil = (GLstencil *) malloc(buffersize * sizeof(GLstencil)); + ctx->Buffer->Stencil = (GLstencil *) GL_ALLOC(buffersize * sizeof(GLstencil)); if (!ctx->Buffer->Stencil) { /* out of memory */ gl_set_enable( ctx, GL_STENCIL_TEST, GL_FALSE ); -- cgit v1.2.3