st/nine: CubeTexture: fix GetLevelDesc
authorAxel Davy <axel.davy@ens.fr>
Tue, 2 Dec 2014 21:44:37 +0000 (22:44 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 22 Jan 2015 22:16:18 +0000 (22:16 +0000)
commit92321611787207f8f2c02a226c1370f85cb99573
tree48b2c53f36ccadc14f7f16ab624e25f8729c0f51
parent18c7e702262425759cafddf7cc6d58543d97d7b3
st/nine: CubeTexture: fix GetLevelDesc

This->surfaces contains the surfaces associated to the levels
and faces. This->surfaces[6*Level] is what we want here,
since it gives us a face descriptor for the level 'Level'.

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: David Heidelberg <david@ixit.cz>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
Signed-off-by: Xavier Bouchoux <xavierb@gmail.com>
Cc: "10.4" <mesa-stable@lists.freedesktop.org>
src/gallium/state_trackers/nine/cubetexture9.c