Mesa (gallium-index-bias): draw: Fix typo resulting from bad regular expression in index bias addition.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Tue Apr 20 08:37:33 UTC 2010
Module: Mesa
Branch: gallium-index-bias
Commit: f1d3f42c47ee0d3c5f13f5b30e6b113d6b542f64
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f1d3f42c47ee0d3c5f13f5b30e6b113d6b542f64
Author: José Fonseca <jfonseca at vmware.com>
Date: Tue Apr 20 10:19:42 2010 +0200
draw: Fix typo resulting from bad regular expression in index bias addition.
---
src/gallium/auxiliary/draw/draw_pt_vcache_tmp.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/gallium/auxiliary/draw/draw_pt_vcache_tmp.h b/src/gallium/auxiliary/draw/draw_pt_vcache_tmp.h
index eedd31b..f7a63de 100644
--- a/src/gallium/auxiliary/draw/draw_pt_vcache_tmp.h
+++ b/src/gallium/auxiliary/draw/draw_pt_vcache_tmp.h
@@ -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);
}
}
More information about the mesa-commit
mailing list