diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2001-02-13 23:50:25 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2001-02-13 23:50:25 +0000 |
commit | 8f28f4850bbf4f32e84f25ee1a8d72b16b8a41d1 (patch) | |
tree | 50731f8b1ecb866268f531ade6721c1221c7143d /src | |
parent | 479fa1db1dc7cb8e48219ac28edfb2f2a9c971b2 (diff) |
fixed GL_SET bug
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/swrast/s_logic.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/swrast/s_logic.c b/src/mesa/swrast/s_logic.c index 0e80159763..10a4654b8a 100644 --- a/src/mesa/swrast/s_logic.c +++ b/src/mesa/swrast/s_logic.c @@ -1,4 +1,4 @@ -/* $Id: s_logic.c,v 1.2 2000/11/05 18:24:40 keithw Exp $ */ +/* $Id: s_logic.c,v 1.3 2001/02/13 23:50:25 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -56,7 +56,7 @@ static void index_logicop( GLcontext *ctx, GLuint n, case GL_SET: for (i=0;i<n;i++) { if (mask[i]) { - index[i] = 1; + index[i] = ~0; } } break; @@ -155,7 +155,7 @@ static void index_logicop( GLcontext *ctx, GLuint n, } break; default: - gl_error( ctx, GL_INVALID_ENUM, "gl_logic error" ); + gl_problem(ctx, "bad mode in index_logic()"); } } @@ -221,7 +221,7 @@ static void rgba_logicop( const GLcontext *ctx, GLuint n, case GL_SET: for (i=0;i<n;i++) { if (mask[i]) { - src[i] = 0xffffffff; + src[i] = ~0; } } break; |