nv50: fix segfault when there's gaps in enabled texture units
authorBen Skeggs <bskeggs@redhat.com>
Tue, 6 Oct 2009 03:55:48 +0000 (13:55 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 6 Oct 2009 03:57:51 +0000 (13:57 +1000)
commit340436d8d2f5f6360c2920de3a7547af95deb8f6
treed92a9c63591fd245bf86a6885e532579e6f804fa
parent4911443d364e38bf93915cf9587f5cf8791cb30d
nv50: fix segfault when there's gaps in enabled texture units

Tested with progs/demos/multiarb.
src/gallium/drivers/nv50/nv50_state_validate.c
src/gallium/drivers/nv50/nv50_tex.c