diff options
Diffstat (limited to 'src/gallium/state_trackers/nine/cubetexture9.c')
-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 0a834eba4bd..977a345552b 100644 --- a/src/gallium/state_trackers/nine/cubetexture9.c +++ b/src/gallium/state_trackers/nine/cubetexture9.c @@ -173,7 +173,7 @@ NineCubeTexture9_dtor( struct NineCubeTexture9 *This ) DBG("This=%p\n", This); if (This->surfaces) { - for (i = 0; i < This->base.base.info.last_level * 6; ++i) + for (i = 0; i < (This->base.base.info.last_level + 1) * 6; ++i) NineUnknown_Destroy(&This->surfaces[i]->base.base); FREE(This->surfaces); } |