Not tested, but pervious version was from my erroneous testing, clearly wrong 
value and offset.
From 21c0dc897d90d9e40d970adb20f7aaece5ee5a4b Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <rand...@mail.ru>
Date: Tue, 2 Mar 2010 16:39:31 +0000
Subject: [PATCH] Oh, hopefully fix multitextured + seconday color  case (not tested)

---
 src/mesa/drivers/dri/nouveau/nv04_state_raster.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/nouveau/nv04_state_raster.c b/src/mesa/drivers/dri/nouveau/nv04_state_raster.c
index c11de42..77402c7 100644
--- a/src/mesa/drivers/dri/nouveau/nv04_state_raster.c
+++ b/src/mesa/drivers/dri/nouveau/nv04_state_raster.c
@@ -277,7 +277,7 @@ nv04_emit_blend(GLcontext *ctx, int emit)
 		
 		/* Secondary color */
 		if (NEED_SECONDARY_COLOR (ctx))
-			blend |= (0x2 << 15);
+			blend |= (0x1 << 12);
 		
 		/* Fog. */
 		if (ctx->Fog.Enabled)
-- 
1.6.5.4

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to