aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/stencil.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>1999-10-10 12:51:29 +0000
committerBrian Paul <[email protected]>1999-10-10 12:51:29 +0000
commit60a249d009acec34bd61e12f01caf7bdf87e895c (patch)
tree004e343be3579ba143ef172130047e60e1cfbbe2 /src/mesa/main/stencil.c
parent375853e86734ea5735aa64af3a7aa0129bc551d5 (diff)
now using GL_MALLOC, GL_FREE
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 95dbfbfbd15..3868a803cbb 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 );