summaryrefslogtreecommitdiff
path: root/src/mesa/main/depth.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-03-19 01:10:11 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-03-19 01:10:11 +0000
commit959f802dabd4f4347dc0ea925ae687abb6938588 (patch)
treedf8d13fb85b62d132007e69d9963c22beee55abc /src/mesa/main/depth.c
parenta742e9bccd683f2a899dafc3703e4d59037c4437 (diff)
fixed compiler warnings on BeOS R4
Diffstat (limited to 'src/mesa/main/depth.c')
-rw-r--r--src/mesa/main/depth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/depth.c b/src/mesa/main/depth.c
index 57937dd093..2f9697616e 100644
--- a/src/mesa/main/depth.c
+++ b/src/mesa/main/depth.c
@@ -1,4 +1,4 @@
-/* $Id: depth.c,v 1.14 2000/03/17 15:31:52 brianp Exp $ */
+/* $Id: depth.c,v 1.15 2000/03/19 01:10:11 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -1570,7 +1570,7 @@ _mesa_clear_depth_buffer( GLcontext *ctx )
2 * ctx->DrawBuffer->Width * ctx->DrawBuffer->Height);
}
else {
- GLushort *d = ctx->DrawBuffer->DepthBuffer;
+ GLushort *d = (GLushort *) ctx->DrawBuffer->DepthBuffer;
GLint n = ctx->DrawBuffer->Width * ctx->DrawBuffer->Height;
while (n >= 16) {
d[0] = clearValue; d[1] = clearValue;