Mesa (master): util: move var declaration before loop to fix MSVC error
Brian Paul
brianp at kemper.freedesktop.org
Fri Jan 4 15:22:44 UTC 2013
Module: Mesa
Branch: master
Commit: 35fe71d97e679aa7fe792cae8e100e7c5dd18bfe
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=35fe71d97e679aa7fe792cae8e100e7c5dd18bfe
Author: Brian Paul <brianp at vmware.com>
Date: Fri Jan 4 08:21:12 2013 -0700
util: move var declaration before loop to fix MSVC error
---
src/gallium/auxiliary/util/u_blitter.c | 3 ++-
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 9173c82..1b9a3f4 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. */
More information about the mesa-commit
mailing list