r300g: silence compiler warning
authorDave Airlie <airlied@redhat.com>
Sun, 27 Sep 2009 10:31:55 +0000 (20:31 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 27 Sep 2009 20:28:31 +0000 (06:28 +1000)
src/gallium/drivers/r300/r300_state_derived.c

index 5f6b225d340497a25401afbff46e5635ccc75f02..62da8e293a19ea431c6efe671ccf0e0d4672cfc8 100644 (file)
@@ -164,7 +164,7 @@ static void r300_vs_tab_routes(struct r300_context* r300,
         vinfo->hwfmt[3] |= (4 << (3 * i));
     }
 
-    for (i; i < texs; i++) {
+    for (; i < texs; i++) {
         draw_emit_vertex_attr(vinfo, EMIT_4F, INTERP_PERSPECTIVE,
             draw_find_vs_output(r300->draw, TGSI_SEMANTIC_GENERIC, i));
         vinfo->hwfmt[1] |= (R300_INPUT_CNTL_TC0 << i);