diff options
author | Brian Paul <[email protected]> | 2013-12-12 11:08:49 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-12-12 11:09:02 -0700 |
commit | ba67d72c64cf543ae11b87484de1d05d82901d1c (patch) | |
tree | f51e6f0deca68702e85e441ae5eaecc37806a8c2 /src | |
parent | be909274aad974b56328acd35e46a020ac93d56e (diff) |
util: move variable declaration out of for-loop
To fix MSVC build.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/util/u_blitter.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c index 710a72811c5..9591fc439cb 100644 --- a/src/gallium/auxiliary/util/u_blitter.c +++ b/src/gallium/auxiliary/util/u_blitter.c @@ -993,9 +993,11 @@ static void *get_clear_blend_state(struct blitter_context_priv *ctx, /* Create a new one. */ { struct pipe_blend_state blend = {0}; + unsigned i; + blend.independent_blend_enable = 1; - for (int i = 0; i < PIPE_MAX_COLOR_BUFS; i++) { + for i = 0; i < PIPE_MAX_COLOR_BUFS; i++) { if (clear_buffers & (PIPE_CLEAR_COLOR0 << i)) { blend.rt[i].colormask = PIPE_MASK_RGBA; } |