aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/util/u_surfaces.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_surfaces.c b/src/gallium/auxiliary/util/u_surfaces.c
index 39cb4e15da9..0be4609a207 100644
--- a/src/gallium/auxiliary/util/u_surfaces.c
+++ b/src/gallium/auxiliary/util/u_surfaces.c
@@ -98,7 +98,8 @@ util_surfaces_destroy(struct util_surfaces *us, struct pipe_resource *pt, void (
{
if(us->u.array)
{
- for(unsigned i = 0; i < pt->last_level; ++i)
+ unsigned i;
+ for(i = 0; i < pt->last_level; ++i)
{
struct pipe_surface *ps = us->u.array[i];
if(ps)