summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-06-26 13:44:20 +0100
committerKeith Whitwell <keithw@vmware.com>2009-06-26 13:44:20 +0100
commitc9f8c400ab23ce86448d6b3f8e292e5d5a170a67 (patch)
treeaf52f6f40f272d4cc851c057924cd50d1e59d605 /src
parentc25534f30d326c15dff845775d9bd55ba6064049 (diff)
aux/indices: don't use 'prim' value once it is known to be bad
Theoretical bugfix only - no known case where this might happen.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/indices/u_indices.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/indices/u_indices.c b/src/gallium/auxiliary/indices/u_indices.c
index 0cf7d88653..03d7453f30 100644
--- a/src/gallium/auxiliary/indices/u_indices.c
+++ b/src/gallium/auxiliary/indices/u_indices.c
@@ -244,7 +244,7 @@ int u_index_generator( unsigned hw_mask,
default:
assert(0);
- *out_generate = generate[out_idx][in_pv][out_pv][prim];
+ *out_generate = generate[out_idx][in_pv][out_pv][PIPE_PRIM_POINTS];
*out_prim = PIPE_PRIM_POINTS;
*out_nr = nr;
return U_TRANSLATE_ERROR;