From 478f19ff49aa3164bdf915a8fa0411124f3b6d2a Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sun, 18 Apr 2010 23:21:07 -0700 Subject: auxiliary: Move loop variable declaration outside for loop. Fixes MSVC build. --- src/gallium/auxiliary/util/u_surfaces.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3