summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_stencil.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/swrast/s_stencil.c')
-rw-r--r--src/mesa/swrast/s_stencil.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/swrast/s_stencil.c b/src/mesa/swrast/s_stencil.c
index 6d62b65fd56..04e09971770 100644
--- a/src/mesa/swrast/s_stencil.c
+++ b/src/mesa/swrast/s_stencil.c
@@ -1,4 +1,4 @@
-/* $Id: s_stencil.c,v 1.21 2002/03/16 00:53:15 brianp Exp $ */
+/* $Id: s_stencil.c,v 1.22 2002/03/19 16:47:05 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -1116,13 +1116,13 @@ _mesa_alloc_stencil_buffer( GLframebuffer *buffer )
{
/* deallocate current stencil buffer if present */
if (buffer->Stencil) {
- FREE(buffer->Stencil);
+ MESA_PBUFFER_FREE(buffer->Stencil);
buffer->Stencil = NULL;
}
/* allocate new stencil buffer */
- buffer->Stencil = (GLstencil *) MALLOC(buffer->Width * buffer->Height
- * sizeof(GLstencil));
+ buffer->Stencil = (GLstencil *)
+ MESA_PBUFFER_ALLOC(buffer->Width * buffer->Height * sizeof(GLstencil));
if (!buffer->Stencil) {
/* out of memory */
_mesa_error( NULL, GL_OUT_OF_MEMORY, "_mesa_alloc_stencil_buffer" );