diff options
author | michal <michal@michal-laptop.(none)> | 2007-08-16 19:45:55 +0100 |
---|---|---|
committer | michal <michal@michal-laptop.(none)> | 2007-08-16 19:45:55 +0100 |
commit | 2f559606dc3a27104199226ccf6568a222797055 (patch) | |
tree | a625f60e3cfd05efdb39f6d6d13c38107e75c5fe | |
parent | 546f1fa01920aeb777a03c4d2c72405d038dd96e (diff) |
Silence compiler warnings.
-rw-r--r-- | src/mesa/pipe/draw/draw_offset.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/pipe/draw/draw_offset.c b/src/mesa/pipe/draw/draw_offset.c index 9b00b09032f..83c9b163eb1 100644 --- a/src/mesa/pipe/draw/draw_offset.c +++ b/src/mesa/pipe/draw/draw_offset.c @@ -55,7 +55,7 @@ static INLINE struct offset_stage *offset_stage( struct draw_stage *stage ) static void offset_begin( struct draw_stage *stage ) { struct offset_stage *offset = offset_stage(stage); - float mrd = 1.0 / 65535.0; /* XXX this depends on depthbuffer bits! */ + float mrd = 1.0f / 65535.0f; /* XXX this depends on depthbuffer bits! */ offset->units = stage->draw->setup.offset_units * mrd; offset->scale = stage->draw->setup.offset_scale; @@ -72,7 +72,7 @@ static void do_offset_tri( struct draw_stage *stage, struct prim_header *header ) { struct offset_stage *offset = offset_stage(stage); - float inv_det = 1.0 / header->det; + float inv_det = 1.0f / header->det; /* Window coords: */ @@ -101,9 +101,9 @@ static void do_offset_tri( struct draw_stage *stage, * Note: we're applying the offset and clamping per-vertex. * Ideally, the offset is applied per-fragment prior to fragment shading. */ - v0[2] = CLAMP(v0[2] + zoffset, 0.0, 1.0); - v1[2] = CLAMP(v1[2] + zoffset, 0.0, 1.0); - v2[2] = CLAMP(v2[2] + zoffset, 0.0, 1.0); + v0[2] = CLAMP(v0[2] + zoffset, 0.0f, 1.0f); + v1[2] = CLAMP(v1[2] + zoffset, 0.0f, 1.0f); + v2[2] = CLAMP(v2[2] + zoffset, 0.0f, 1.0f); stage->next->tri( stage->next, header ); } |