st/nine: Fix the number of texture stages
authorAxel Davy <axel.davy@ens.fr>
Sat, 25 Jul 2015 15:54:26 +0000 (17:54 +0200)
committerAxel Davy <axel.davy@ens.fr>
Fri, 21 Aug 2015 20:21:48 +0000 (22:21 +0200)
commit1a747094ed0ab32541936dd18931f382901affe6
treed07d5e799f10b80a20b2083a177c0e1cd8078f5b
parentf15ff98e2c53f6ce62443b24e3a9cf79c60ddff7
st/nine: Fix the number of texture stages

The number of texture stages is 8.

'tex_stage' array was too big, and thus
the checks with 'Elements(state->ff.tex_stage)' were passing,
causing some invalid API calls to pass, and crash because of
out of bounds write since bumpmap_vars was just the correct size.

Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/nine_state.h
src/gallium/state_trackers/nine/stateblock9.c