diff options
author | Vinson Lee <[email protected]> | 2010-04-18 23:21:07 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-04-18 23:21:07 -0700 |
commit | 478f19ff49aa3164bdf915a8fa0411124f3b6d2a (patch) | |
tree | cdf52ba7d74730952aaffd7fd0436601b43dfbf3 /src/gallium | |
parent | c628a2e0c7cbce10bd41203fd9ca1316da817cf5 (diff) |
auxiliary: Move loop variable declaration outside for loop.
Fixes MSVC build.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/util/u_surfaces.c | 3 |
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) |