From 2f559606dc3a27104199226ccf6568a222797055 Mon Sep 17 00:00:00 2001 From: michal Date: Thu, 16 Aug 2007 19:45:55 +0100 Subject: [PATCH] Silence compiler warnings. --- src/mesa/pipe/draw/draw_offset.c | 10 +++++----- 1 file 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 ); } -- 2.11.0