meta: Move loop variable declaration outside for loop.

Fixes build with MSVC.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
This commit is contained in:
Vinson Lee
2013-01-15 18:03:25 -08:00
parent 7ecbbc3386
commit 780c2cb42b
+2 -1
View File
@@ -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;