summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2001-02-13 23:50:25 +0000
committerBrian Paul <[email protected]>2001-02-13 23:50:25 +0000
commit8f28f4850bbf4f32e84f25ee1a8d72b16b8a41d1 (patch)
tree50731f8b1ecb866268f531ade6721c1221c7143d /src/mesa
parent479fa1db1dc7cb8e48219ac28edfb2f2a9c971b2 (diff)
fixed GL_SET bug
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/swrast/s_logic.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/swrast/s_logic.c b/src/mesa/swrast/s_logic.c
index 0e801597633..10a4654b8ac 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;