diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2002-11-26 02:58:43 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2002-11-26 02:58:43 +0000 |
commit | f345c61a59d9d979eb31fe7e9c6a035f71ac2075 (patch) | |
tree | 2efefb7442c1c7fb38e595c50e7dc533ca0a36b2 | |
parent | a87514f58e1ef21bad296e1d75b75627ca1f0568 (diff) |
fixed bad clear value
-rw-r--r-- | src/mesa/swrast/s_alphabuf.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mesa/swrast/s_alphabuf.c b/src/mesa/swrast/s_alphabuf.c index b5a2e31513..0c82055721 100644 --- a/src/mesa/swrast/s_alphabuf.c +++ b/src/mesa/swrast/s_alphabuf.c @@ -1,8 +1,8 @@ -/* $Id: s_alphabuf.c,v 1.15 2002/10/24 23:57:24 brianp Exp $ */ +/* $Id: s_alphabuf.c,v 1.16 2002/11/26 02:58:43 brianp Exp $ */ /* * Mesa 3-D graphics library - * Version: 4.1 + * Version: 5.0.1 * * Copyright (C) 1999-2002 Brian Paul All Rights Reserved. * @@ -32,6 +32,7 @@ #include "glheader.h" +#include "colormac.h" #include "context.h" #include "imports.h" @@ -103,9 +104,11 @@ _mesa_alloc_alpha_buffers( GLframebuffer *buffer ) void _mesa_clear_alpha_buffers( GLcontext *ctx ) { - const GLchan aclear = (GLchan) ctx->Color.ClearColor[3]; + GLchan aclear; GLuint bufferBit; + CLAMPED_FLOAT_TO_CHAN(aclear, ctx->Color.ClearColor[3]); + ASSERT(ctx->DrawBuffer->UseSoftwareAlphaBuffers); ASSERT(ctx->Color.ColorMask[ACOMP]); |