auxiliary: Move loop variable declaration outside for loop.
authorVinson Lee <vlee@vmware.com>
Mon, 19 Apr 2010 06:21:07 +0000 (23:21 -0700)
committerVinson Lee <vlee@vmware.com>
Mon, 19 Apr 2010 06:21:07 +0000 (23:21 -0700)
Fixes MSVC build.

src/gallium/auxiliary/util/u_surfaces.c

index 39cb4e1..0be4609 100644 (file)
@@ -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)