aux/indices: don't use 'prim' value once it is known to be bad
authorKeith Whitwell <keithw@vmware.com>
Fri, 26 Jun 2009 12:44:20 +0000 (13:44 +0100)
committerKeith Whitwell <keithw@vmware.com>
Fri, 26 Jun 2009 12:44:20 +0000 (13:44 +0100)
Theoretical bugfix only - no known case where this might happen.

src/gallium/auxiliary/indices/u_indices.c

index 0cf7d88653ca013873b3bfd86789dbe3c0865d01..03d7453f303b19bd8db93dcce5d5d27df2f5f146 100644 (file)
@@ -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;