projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
479fa1d
)
fixed GL_SET bug
author
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 13 Feb 2001 23:50:25 +0000
(23:50 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 13 Feb 2001 23:50:25 +0000
(23:50 +0000)
src/mesa/swrast/s_logic.c
patch
|
blob
|
history
diff --git
a/src/mesa/swrast/s_logic.c
b/src/mesa/swrast/s_logic.c
index 0e801597633b40157bd5e2222accb8e5a22c3c31..10a4654b8ac3eeae9ff9adf0b6c1564575e15cf9 100644
(file)
--- 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;