summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2000-03-17 15:31:52 +0000
committerBrian Paul <[email protected]>2000-03-17 15:31:52 +0000
commit650cb74bcb913d2589355d56a14da1ab0307d1fc (patch)
tree8d4a4e1f0198a6a85677db4f48f04a23abbb9b9d /src/mesa/drivers
parent46f717f949dd13d7be1621873f76d6fbc620149d (diff)
removed old Depth buffer pointer var
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/osmesa/osmesa.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c
index ea015236f00..426154df562 100644
--- a/src/mesa/drivers/osmesa/osmesa.c
+++ b/src/mesa/drivers/osmesa/osmesa.c
@@ -1,4 +1,4 @@
-/* $Id: osmesa.c,v 1.10 2000/03/03 17:50:09 brianp Exp $ */
+/* $Id: osmesa.c,v 1.11 2000/03/17 15:32:29 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -492,7 +492,7 @@ void GLAPIENTRY OSMesaGetBooleanv( GLint pname, GLboolean *value )
GLboolean GLAPIENTRY OSMesaGetDepthBuffer( OSMesaContext c, GLint *width, GLint *height,
GLint *bytesPerValue, void **buffer )
{
- if ((!c->gl_buffer) || (!c->gl_buffer->Depth)) {
+ if ((!c->gl_buffer) || (!c->gl_buffer->DepthBuffer)) {
*width = 0;
*height = 0;
*bytesPerValue = 0;
@@ -503,7 +503,7 @@ GLboolean GLAPIENTRY OSMesaGetDepthBuffer( OSMesaContext c, GLint *width, GLint
*width = c->gl_buffer->Width;
*height = c->gl_buffer->Height;
*bytesPerValue = sizeof(GLdepth);
- *buffer = c->gl_buffer->Depth;
+ *buffer = c->gl_buffer->DepthBuffer;
return GL_TRUE;
}
}
@@ -1838,6 +1838,8 @@ static void osmesa_update_state( GLcontext *ctx )
(ctx->Color.ColorMask[3] == 0) &&
(ctx->Stencil.Enabled == GL_FALSE)) {
+ /* XXX depth.func == GL_LESS ? */
+
ctx->Driver.WriteCI32Span = write_index32_span_occ;
ctx->Driver.WriteCI8Span = write_index8_span_occ;
ctx->Driver.WriteMonoCISpan = write_monoindex_span_occ;