diff options
author | Vinson Lee <vlee@vmware.com> | 2010-10-19 23:48:59 -0700 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2010-10-19 23:48:59 -0700 |
commit | 289900439f0f327910496f6bc362b95930eebb53 (patch) | |
tree | c29b9456fc8eae173266044e9f799379eabe0094 /src/gallium/auxiliary/draw | |
parent | 05921fd4e5305da68bb269748cb0ef059e1db417 (diff) |
draw: Move loop variable declaration outside for loop.
Fixes MSVC build.
Diffstat (limited to 'src/gallium/auxiliary/draw')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_llvm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c index beb955fbf4..4ad570950f 100644 --- a/src/gallium/auxiliary/draw/draw_llvm.c +++ b/src/gallium/auxiliary/draw/draw_llvm.c @@ -732,6 +732,7 @@ store_clip(LLVMBuilderRef builder, LLVMValueRef clip_ptr0, clip_ptr1, clip_ptr2, clip_ptr3; LLVMValueRef clip0_ptr, clip1_ptr, clip2_ptr, clip3_ptr; LLVMValueRef out0elem, out1elem, out2elem, out3elem; + int i; LLVMValueRef ind0 = LLVMConstInt(LLVMInt32Type(), 0, 0); LLVMValueRef ind1 = LLVMConstInt(LLVMInt32Type(), 1, 0); @@ -756,7 +757,7 @@ store_clip(LLVMBuilderRef builder, clip_ptr2 = draw_jit_header_clip(builder, io2_ptr); clip_ptr3 = draw_jit_header_clip(builder, io3_ptr); - for (int i = 0; i<4; i++){ + for (i = 0; i<4; i++){ clip0_ptr = LLVMBuildGEP(builder, clip_ptr0, indices, 2, ""); //x0 clip1_ptr = LLVMBuildGEP(builder, clip_ptr1, |