util/indices: assert that the incoming primitive is a triangle type
authorBrian Paul <brianp@vmware.com>
Fri, 13 May 2016 22:49:22 +0000 (16:49 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 26 May 2016 23:44:17 +0000 (17:44 -0600)
commit479d364c39e06dfcbe2e1d995bd82f748b1a172d
treedbe0a061c59cfbf8136224bae72af5d1faab71c3
parent26de558072509ca9a6d399d6c597f1da30e28ab6
util/indices: assert that the incoming primitive is a triangle type

The unfilled index translator/generator functions should only be
called when the primitive mode is one of the triangle types.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/indices/u_unfilled_indices.c