util: move var declaration before loop to fix MSVC error

This commit is contained in:
Brian Paul
2013-01-04 08:21:12 -07:00
parent 1aebb6911e
commit 35fe71d97e

View File

@@ -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. */