summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2014-12-02 22:44:37 +0100
committerEmil Velikov <[email protected]>2015-01-22 22:16:18 +0000
commit92321611787207f8f2c02a226c1370f85cb99573 (patch)
tree48b2c53f36ccadc14f7f16ab624e25f8729c0f51 /src/gallium
parent18c7e702262425759cafddf7cc6d58543d97d7b3 (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 <[email protected]> Reviewed-by: David Heidelberg <[email protected]> Signed-off-by: Axel Davy <[email protected]> Signed-off-by: Xavier Bouchoux <[email protected]> Cc: "10.4" <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/state_trackers/nine/cubetexture9.c2
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;
}