projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c628a2e
)
auxiliary: Move loop variable declaration outside for loop.
author
Vinson Lee
<vlee@vmware.com>
Mon, 19 Apr 2010 06:21:07 +0000
(23:21 -0700)
committer
Vinson 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
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_surfaces.c
b/src/gallium/auxiliary/util/u_surfaces.c
index
39cb4e1
..
0be4609
100644
(file)
--- 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)