From: Keith Whitwell Date: Fri, 26 Jun 2009 12:44:20 +0000 (+0100) Subject: aux/indices: don't use 'prim' value once it is known to be bad X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c9f8c400ab23ce86448d6b3f8e292e5d5a170a67;p=mesa.git aux/indices: don't use 'prim' value once it is known to be bad Theoretical bugfix only - no known case where this might happen. --- diff --git a/src/gallium/auxiliary/indices/u_indices.c b/src/gallium/auxiliary/indices/u_indices.c index 0cf7d88653c..03d7453f303 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;