summaryrefslogtreecommitdiff
path: root/src/mesa/main/stencil.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/stencil.c')
-rw-r--r--src/mesa/main/stencil.c6
1 files changed, 3 insertions, 3 deletions
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 );