projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8927fbe
)
fixed GL_REPLACE / GL_RGB bug
author
Brian Paul
<brian.paul@tungstengraphics.com>
Wed, 9 Jan 2002 00:27:49 +0000
(
00:27
+0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Wed, 9 Jan 2002 00:27:49 +0000
(
00:27
+0000)
src/mesa/swrast/s_triangle.c
patch
|
blob
|
history
diff --git
a/src/mesa/swrast/s_triangle.c
b/src/mesa/swrast/s_triangle.c
index cc5fc5b0d628cffa2a142a0e3baa84b27d598293..d61a2bb659066a001d0bbf63654d25c8df87952d 100644
(file)
--- a/
src/mesa/swrast/s_triangle.c
+++ b/
src/mesa/swrast/s_triangle.c
@@
-1,4
+1,4
@@
-/* $Id: s_triangle.c,v 1.4
5 2002/01/09 00:09:33
brianp Exp $ */
+/* $Id: s_triangle.c,v 1.4
6 2002/01/09 00:27:49
brianp Exp $ */
/*
* Mesa 3-D graphics library
@@
-392,7
+392,12
@@
affine_span(GLcontext *ctx, struct sw_span *span,
/* shortcuts */
-#define NEAREST_RGB_REPLACE NEAREST_RGB;REPLACE
+#define NEAREST_RGB_REPLACE \
+ NEAREST_RGB; \
+ dest[0] = sample[0]; \
+ dest[1] = sample[1]; \
+ dest[2] = sample[2]; \
+ dest[3] = FixedToInt(span->alpha);
#define NEAREST_RGBA_REPLACE COPY_CHAN4(dest, tex00)