That was really stupid.
authorStephane Marchesin <marchesin@icps.u-strasbg.fr>
Thu, 23 Nov 2006 09:21:44 +0000 (09:21 +0000)
committerStephane Marchesin <marchesin@icps.u-strasbg.fr>
Thu, 23 Nov 2006 09:21:44 +0000 (09:21 +0000)
src/mesa/drivers/dri/nouveau/nv10_swtcl.c

index 198e3a2668ab5d8b7b881f3fbebe17b158b0143c..4d05a439bb896c065ea311f4c789c889503c4acb 100644 (file)
@@ -427,7 +427,11 @@ static inline void nv10OutputVertexFormat(struct nouveau_context* nmesa)
                        total_size+=attr_size[i];
                }
        }
-       nmesa->vertex_size=total_size;
+       nmesa->vertex_size=_tnl_install_attrs( ctx,
+                       nmesa->vertex_attrs, 
+                       nmesa->vertex_attr_count,
+                       NULL, 0 );
+       assert(nmesa->vertex_size==total_size*4);
 
        /* 
         * Tell the hardware about the vertex format