nouveau: Fix a bug in the nv04 swtcl.
authorStephane Marchesin <marchesin@icps.u-strasbg.fr>
Mon, 15 Jan 2007 11:38:24 +0000 (12:38 +0100)
committerStephane Marchesin <marchesin@icps.u-strasbg.fr>
Mon, 15 Jan 2007 11:38:24 +0000 (12:38 +0100)
src/mesa/drivers/dri/nouveau/nv04_swtcl.c

index e4ace92134bc4474faae28bd3a256352e684a2a3..f31c0d692dec46f8a3c4844b27d270b10b8734f3 100644 (file)
@@ -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;