summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormichal <michal@michal-laptop.(none)>2007-10-26 17:20:53 +0100
committermichal <michal@michal-laptop.(none)>2007-10-27 19:01:11 +0100
commit187c164bb6fa794f59181df89e72ff8c543238c6 (patch)
treee3a08652140770a4aa6bbcc0f856d32a60afa022
parent3755840e005dd11db0a51effa420672ac4f119d4 (diff)
Silence compiler warnings.
-rw-r--r--src/mesa/pipe/softpipe/sp_prim_setup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/pipe/softpipe/sp_prim_setup.c b/src/mesa/pipe/softpipe/sp_prim_setup.c
index 73b18b776bc..0b1b592bbe3 100644
--- a/src/mesa/pipe/softpipe/sp_prim_setup.c
+++ b/src/mesa/pipe/softpipe/sp_prim_setup.c
@@ -853,7 +853,7 @@ setup_line(struct draw_stage *stage, struct prim_header *prim)
for (i = 0; i < dx; i++) {
if (!sp->rasterizer->line_stipple_enable ||
stipple_test(sp->line_stipple_counter,
- sp->rasterizer->line_stipple_pattern,
+ (ushort) sp->rasterizer->line_stipple_pattern,
sp->rasterizer->line_stipple_factor + 1)) {
plot(setup, x0, y0);
}
@@ -880,7 +880,7 @@ setup_line(struct draw_stage *stage, struct prim_header *prim)
for (i = 0; i < dy; i++) {
if (!sp->rasterizer->line_stipple_enable ||
stipple_test(sp->line_stipple_counter,
- sp->rasterizer->line_stipple_pattern,
+ (ushort) sp->rasterizer->line_stipple_pattern,
sp->rasterizer->line_stipple_factor + 1)) {
plot(setup, x0, y0);
}
@@ -1184,7 +1184,7 @@ void sp_vbuf_setup_draw( struct pipe_context *pipe,
struct setup_stage *setup = setup_stage( softpipe->setup );
struct prim_header prim;
unsigned vertex_size = setup->stage.draw->vertex_info.size * sizeof(float);
- int i, j;
+ unsigned i, j;
prim.det = 0;
prim.reset_line_stipple = 0;