diff options
author | Vinson Lee <[email protected]> | 2013-01-15 18:03:25 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2013-01-15 18:03:25 -0800 |
commit | 780c2cb42bc7bff9f89a998effb732bdcd72630b (patch) | |
tree | 4740892fad68ce759cf6a2978ec2e32636b1c024 /src/mesa/drivers/common | |
parent | 7ecbbc338668d745daae7b3a6d17f3af0adf12d7 (diff) |
meta: Move loop variable declaration outside for loop.
Fixes build with MSVC.
Signed-off-by: Vinson Lee <[email protected]>
Diffstat (limited to 'src/mesa/drivers/common')
-rw-r--r-- | src/mesa/drivers/common/meta.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index 5cbb7da31da..e25481e1a85 100644 --- a/src/mesa/drivers/common/meta.c +++ b/src/mesa/drivers/common/meta.c @@ -1623,9 +1623,10 @@ blitframebuffer_texture(struct gl_context *ctx, GLuint sampler, samplerSave = ctx->Texture.Unit[ctx->Texture.CurrentUnit].Sampler ? ctx->Texture.Unit[ctx->Texture.CurrentUnit].Sampler->Name : 0; + int i; /* Iterate through all draw buffers */ - for (int i = 0; i < ctx->DrawBuffer->_NumColorDrawBuffers; i++) { + for (i = 0; i < ctx->DrawBuffer->_NumColorDrawBuffers; i++) { int idx = ctx->DrawBuffer->_ColorDrawBufferIndexes[i]; if (idx == -1) continue; |