r300g: fix warning
authorMarek Olšák <maraeo@gmail.com>
Fri, 11 Feb 2011 00:18:53 +0000 (01:18 +0100)
committerMarek Olšák <maraeo@gmail.com>
Fri, 11 Feb 2011 00:18:53 +0000 (01:18 +0100)
src/gallium/drivers/r300/r300_render.c

index ca55984ad9ef6d2054475bdbe4879c3a041ef8a0..6767a5521b2869ea279ff84c7b61e60c42ca0297 100644 (file)
@@ -944,7 +944,7 @@ static void r300_render_draw_arrays(struct vbuf_render* render,
     if (r300->draw_first_emitted) {
         if (!r300_prepare_for_rendering(r300,
                 PREP_FIRST_DRAW | PREP_EMIT_AOS_SWTCL,
-                NULL, 6, 0, 0, FALSE))
+                NULL, dwords, 0, 0, FALSE))
             return;
     } else {
         if (!r300_emit_states(r300,