mesa: Add an assertion to _mesa_program_index_to_target().
authorPaul Berry <stereotype441@gmail.com>
Tue, 17 Dec 2013 18:11:27 +0000 (10:11 -0800)
committerPaul Berry <stereotype441@gmail.com>
Mon, 30 Dec 2013 19:21:33 +0000 (11:21 -0800)
commit7e0b4b5e9b719de9f01e808fc18138b67be4178a
treee41c8f8e582ff35fab5c3c4fc99be2017bc1f45b
parent99e822fa18a322f7bf0d32ce99eab534d5614469
mesa: Add an assertion to _mesa_program_index_to_target().

Only a Mesa bug could cause this function to be called with an
out-of-range index, so raise an assertion if that ever happens.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/program/program.h