diff options
author | Daniel Borca <[email protected]> | 2004-05-12 05:36:24 +0000 |
---|---|---|
committer | Daniel Borca <[email protected]> | 2004-05-12 05:36:24 +0000 |
commit | e61d60eb813ae1891e5c9f65c16f23cc45a48841 (patch) | |
tree | 1e58f434634a5685ddf830056210de90201d5488 /src/mesa/drivers/glide/fxdd.c | |
parent | a156b49800c1419785d0709b78ef0d35e6dab5df (diff) |
minor fixes
Diffstat (limited to 'src/mesa/drivers/glide/fxdd.c')
-rw-r--r-- | src/mesa/drivers/glide/fxdd.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mesa/drivers/glide/fxdd.c b/src/mesa/drivers/glide/fxdd.c index ffebcdae464..93613c8db24 100644 --- a/src/mesa/drivers/glide/fxdd.c +++ b/src/mesa/drivers/glide/fxdd.c @@ -152,15 +152,9 @@ static void fxDDClear( GLcontext *ctx, fxMesaContext fxMesa = FX_CONTEXT(ctx); GLbitfield softwareMask = mask & (DD_ACCUM_BIT); const GLuint stencil_size = fxMesa->haveHwStencil ? ctx->Visual.stencilBits : 0; - const FxU32 clearD = (FxU32) (((1 << ctx->Visual.depthBits) - 1) * ctx->Depth.Clear); + const FxU32 clearD = (FxU32) (ctx->DepthMaxF * ctx->Depth.Clear); const FxU8 clearS = (FxU8) (ctx->Stencil.Clear & 0xff); - /* [dBorca] Hack alert: - * if we set Mesa for 32bit depth, we'll get - * clearD == 0 - * due to 32bit integer overflow! - */ - if ( TDFX_DEBUG & MESA_VERBOSE ) { fprintf( stderr, "fxDDClear( %d, %d, %d, %d )\n", (int) x, (int) y, (int) width, (int) height ); |