diff options
author | Axel Davy <axel.davy@ens.fr> | 2014-12-02 22:44:37 +0100 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2015-01-22 22:16:18 +0000 |
commit | 92321611787207f8f2c02a226c1370f85cb99573 (patch) | |
tree | 48b2c53f36ccadc14f7f16ab624e25f8729c0f51 /src | |
parent | 18c7e702262425759cafddf7cc6d58543d97d7b3 (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/state_trackers/nine/cubetexture9.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/nine/cubetexture9.c b/src/gallium/state_trackers/nine/cubetexture9.c index 9f5d8e24d4a..2c607c06799 100644 --- a/src/gallium/state_trackers/nine/cubetexture9.c +++ b/src/gallium/state_trackers/nine/cubetexture9.c @@ -146,7 +146,7 @@ NineCubeTexture9_GetLevelDesc( struct NineCubeTexture9 *This, user_assert(Level == 0 || !(This->base.base.usage & D3DUSAGE_AUTOGENMIPMAP), D3DERR_INVALIDCALL); - *pDesc = This->surfaces[Level]->desc; + *pDesc = This->surfaces[Level * 6]->desc; return D3D_OK; } |