nouveau: fix a small bug in nv10 swtcl
authorBen Skeggs <darktama@iinet.net.au>
Mon, 5 Feb 2007 14:57:04 +0000 (01:57 +1100)
committerBen Skeggs <darktama@iinet.net.au>
Mon, 5 Feb 2007 14:57:04 +0000 (01:57 +1100)
src/mesa/drivers/dri/nouveau/nv10_swtcl.c

index 9891b363cbe094a60ad50aee261238fbe39b7fb6..6f57b775df0b241d5f9a39c0698ff79d54474be0 100644 (file)
@@ -196,7 +196,7 @@ static inline void nv10_render_generic_primitive_elts(GLcontext *ctx,GLuint star
        GLuint j;
 
        nv10ExtendPrimitive(nmesa, size_dword);
-       nv10StartPrimitive(nmesa,prim+1,size_dword);
+       nv10StartPrimitive(nmesa,prim+1,size_dword*count);
        for (j=start; j<count; j++ ) {
                OUT_RINGp((nouveauVertex*)(vertptr+(elt[j]*vertsize)),vertsize);
        }