diff options
author | Brian Paul <[email protected]> | 1999-11-26 16:27:05 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 1999-11-26 16:27:05 +0000 |
commit | 7110c37d5e0a37d64c9867af5b1a4c9316a13ed0 (patch) | |
tree | ea3d914d6ad4fe286f066c6f2e66a9f80888ad50 /src/mesa/main | |
parent | 88590fb3423943d4b7c27bb5ab0e0d77c93fa7ec (diff) |
generate Z values when fog enabled (Andree Borrmann)
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/drawpix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/drawpix.c b/src/mesa/main/drawpix.c index 60a30c25664..3bd164159d9 100644 --- a/src/mesa/main/drawpix.c +++ b/src/mesa/main/drawpix.c @@ -1,4 +1,4 @@ -/* $Id: drawpix.c,v 1.9 1999/11/24 18:48:31 brianp Exp $ */ +/* $Id: drawpix.c,v 1.10 1999/11/26 16:27:05 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -417,7 +417,7 @@ draw_index_pixels( GLcontext *ctx, GLint x, GLint y, drawWidth = (width > MAX_WIDTH) ? MAX_WIDTH : width; /* Fragment depth values */ - if (ctx->Depth.Test) { + if (ctx->Depth.Test || ctx->Fog.Enabled) { GLdepth zval = (GLdepth) (ctx->Current.RasterPos[2] * DEPTH_SCALE); GLint i; for (i = 0; i < drawWidth; i++) { @@ -623,7 +623,7 @@ draw_rgba_pixels( GLcontext *ctx, GLint x, GLint y, return; /* Fragment depth values */ - if (ctx->Depth.Test) { + if (ctx->Depth.Test || ctx->Fog.Enabled) { /* fill in array of z values */ GLdepth z = (GLdepth) (ctx->Current.RasterPos[2] * DEPTH_SCALE); GLint i; |