Mesa (master): softpipe: Fix MSVC build.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Mon Sep 28 12:04:17 UTC 2009
Module: Mesa
Branch: master
Commit: 56870534803982a73019ddd77dab300d146f77c6
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=56870534803982a73019ddd77dab300d146f77c6
Author: José Fonseca <jfonseca at vmware.com>
Date: Mon Sep 28 13:03:03 2009 +0100
softpipe: Fix MSVC build.
---
src/gallium/drivers/softpipe/sp_video_context.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/softpipe/sp_video_context.c b/src/gallium/drivers/softpipe/sp_video_context.c
index 3be33fb..ccb2972 100644
--- a/src/gallium/drivers/softpipe/sp_video_context.c
+++ b/src/gallium/drivers/softpipe/sp_video_context.c
@@ -115,6 +115,7 @@ init_pipe_state(struct sp_mpeg12_context *ctx)
struct pipe_rasterizer_state rast;
struct pipe_blend_state blend;
struct pipe_depth_stencil_alpha_state dsa;
+ unsigned i;
assert(ctx);
@@ -167,7 +168,7 @@ init_pipe_state(struct sp_mpeg12_context *ctx)
dsa.depth.writemask = 0;
dsa.depth.func = PIPE_FUNC_ALWAYS;
dsa.depth.occlusion_count = 0;
- for (unsigned i = 0; i < 2; ++i) {
+ for (i = 0; i < 2; ++i) {
dsa.stencil[i].enabled = 0;
dsa.stencil[i].func = PIPE_FUNC_ALWAYS;
dsa.stencil[i].fail_op = PIPE_STENCIL_OP_KEEP;
More information about the mesa-commit
mailing list