summaryrefslogtreecommitdiff
path: root/src/mesa/main/depth.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>1999-10-10 12:51:29 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>1999-10-10 12:51:29 +0000
commit60a249d009acec34bd61e12f01caf7bdf87e895c (patch)
tree004e343be3579ba143ef172130047e60e1cfbbe2 /src/mesa/main/depth.c
parent375853e86734ea5735aa64af3a7aa0129bc551d5 (diff)
now using GL_MALLOC, GL_FREE
Diffstat (limited to 'src/mesa/main/depth.c')
-rw-r--r--src/mesa/main/depth.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesa/main/depth.c b/src/mesa/main/depth.c
index 0dfab9aded..12d226d530 100644
--- a/src/mesa/main/depth.c
+++ b/src/mesa/main/depth.c
@@ -1,4 +1,4 @@
-/* $Id: depth.c,v 1.4 1999/10/08 09:27:10 keithw Exp $ */
+/* $Id: depth.c,v 1.5 1999/10/10 12:51:29 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -36,7 +36,6 @@
#include "all.h"
#else
#ifndef XFree86Server
-#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#else
@@ -812,12 +811,12 @@ void gl_alloc_depth_buffer( GLcontext* ctx )
{
/* deallocate current depth buffer if present */
if (ctx->Buffer->Depth) {
- free(ctx->Buffer->Depth);
+ GL_FREE(ctx->Buffer->Depth);
ctx->Buffer->Depth = NULL;
}
/* allocate new depth buffer, but don't initialize it */
- ctx->Buffer->Depth = (GLdepth *) malloc( ctx->Buffer->Width
+ ctx->Buffer->Depth = (GLdepth *) GL_ALLOC( ctx->Buffer->Width
* ctx->Buffer->Height
* sizeof(GLdepth) );
if (!ctx->Buffer->Depth) {