summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-01-04 08:21:12 -0700
committerBrian Paul <[email protected]>2013-01-04 08:22:02 -0700
commit35fe71d97e679aa7fe792cae8e100e7c5dd18bfe (patch)
treec28305c3e469570172755a18b786168911cfd5c5 /src
parent1aebb6911e9aa1bd8900868b58d1750ca83a20c7 (diff)
util: move var declaration before loop to fix MSVC error
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/util/u_blitter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c
index 9173c82dda2..1b9a3f438ac 100644
--- a/src/gallium/auxiliary/util/u_blitter.c
+++ b/src/gallium/auxiliary/util/u_blitter.c
@@ -1399,7 +1399,8 @@ void util_blitter_blit_generic(struct blitter_context *blitter,
UTIL_BLITTER_ATTRIB_TEXCOORD, &coord);
} else {
/* Draw the quad with the generic codepath. */
- for (int z = 0; z < dstbox->depth; z++) {
+ int z;
+ for (z = 0; z < dstbox->depth; z++) {
struct pipe_surface *old;
/* Set framebuffer state. */