summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/nine/volumetexture9.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/state_trackers/nine/volumetexture9.c')
-rw-r--r--src/gallium/state_trackers/nine/volumetexture9.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/nine/volumetexture9.c b/src/gallium/state_trackers/nine/volumetexture9.c
index 4908ed7b5ef..5c83fdb60ce 100644
--- a/src/gallium/state_trackers/nine/volumetexture9.c
+++ b/src/gallium/state_trackers/nine/volumetexture9.c
@@ -139,7 +139,7 @@ NineVolumeTexture9_dtor( struct NineVolumeTexture9 *This )
DBG("This=%p\n", This);
if (This->volumes) {
- for (l = 0; l < This->base.base.info.last_level; ++l)
+ for (l = 0; l <= This->base.base.info.last_level; ++l)
NineUnknown_Destroy(&This->volumes[l]->base);
FREE(This->volumes);
}