From 4c7d36b688866129a17c3f59aa9374b2f9a874de Mon Sep 17 00:00:00 2001
From: Stephane Marchesin <marchesin@icps.u-strasbg.fr>
Date: Mon, 15 Jan 2007 12:38:24 +0100
Subject: nouveau: Fix a bug in the nv04 swtcl.

---
 src/mesa/drivers/dri/nouveau/nv04_swtcl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/mesa/drivers/dri/nouveau/nv04_swtcl.c b/src/mesa/drivers/dri/nouveau/nv04_swtcl.c
index e4ace92134b..f31c0d692de 100644
--- a/src/mesa/drivers/dri/nouveau/nv04_swtcl.c
+++ b/src/mesa/drivers/dri/nouveau/nv04_swtcl.c
@@ -178,7 +178,7 @@ static void nv04_render_tri_fan_verts(GLcontext *ctx,GLuint start,GLuint count,G
 	for(i=start+1;i<count;i+=14)
 	{
 		int numvert=MIN2(15,count-i);
-		int numtri=numvert-2;
+		int numtri=numvert-1;
 		if (numvert<3)
 			break;
 
-- 
cgit v1.2.3