summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTim Evans <[email protected]>2010-06-21 17:18:30 -0600
committerBrian Paul <[email protected]>2010-06-21 17:19:59 -0600
commit64e32ffb6e7d324dcb46a18975db0c58719c51e7 (patch)
treef37c998521d6e84cc7addc7f15b3ddd378ce2040 /src
parentb875c026689dbe794069de58dd342aa7db5eace8 (diff)
swrast: fix incorrect specular highlights on backfaces
See bug 28577 for details. NOTE: this is a candidate for the 7.8 branch. Signed-off-by: Brian Paul <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/swrast_setup/ss_triangle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/swrast_setup/ss_triangle.c b/src/mesa/swrast_setup/ss_triangle.c
index bad0d819460..f22bc52f0a8 100644
--- a/src/mesa/swrast_setup/ss_triangle.c
+++ b/src/mesa/swrast_setup/ss_triangle.c
@@ -159,7 +159,7 @@ static void _swsetup_render_tri(GLcontext *ctx,
}
#define SS_COLOR(a,b) UNCLAMPED_FLOAT_TO_RGBA_CHAN(a,b)
-#define SS_SPEC(a,b) UNCLAMPED_FLOAT_TO_RGB_CHAN(a,b)
+#define SS_SPEC(a,b) COPY_4V(a,b)
#define SS_IND(a,b) (a = b)
#define IND (0)