draw: Fix typo resulting from bad regular expression in index bias addition.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 20 Apr 2010 08:19:42 +0000 (10:19 +0200)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 20 Apr 2010 08:19:42 +0000 (10:19 +0200)
src/gallium/auxiliary/draw/draw_pt_vcache_tmp.h

index eedd31b7f859e59dbb7e6117637ed6f0028d87f1..f7a63de3ba9c6be8a1a5ec3788746b1fa1983510 100644 (file)
@@ -78,16 +78,16 @@ static void FUNC( struct draw_pt_front_end *frontend,
             TRIANGLE( vcache,
                       DRAW_PIPE_RESET_STIPPLE | DRAW_PIPE_EDGE_FLAG_ALL, 
                       get_elt(elts, i + 0) + elt_bias,
-                      get_elt(elts, i + 1 + (i&1) + elt_bias),
-                      get_elt(elts, i + 2 - (i&1) + elt_bias));
+                      get_elt(elts, i + 1 + (i&1)) + elt_bias,
+                      get_elt(elts, i + 2 - (i&1)) + elt_bias);
          }
       }
       else {
          for (i = 0; i+2 < count; i++) {
             TRIANGLE( vcache,
                       DRAW_PIPE_RESET_STIPPLE | DRAW_PIPE_EDGE_FLAG_ALL, 
-                      get_elt(elts, i + 0 + (i&1) + elt_bias),
-                      get_elt(elts, i + 1 - (i&1) + elt_bias),
+                      get_elt(elts, i + 0 + (i&1)) + elt_bias,
+                      get_elt(elts, i + 1 - (i&1)) + elt_bias,
                       get_elt(elts, i + 2 ) + elt_bias);
          }
       }