summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/draw/draw_clip.c
diff options
context:
space:
mode:
authormichal <michal@michal-laptop.(none)>2007-08-21 20:45:09 +0100
committermichal <michal@michal-laptop.(none)>2007-08-21 20:45:09 +0100
commiteb51761b825018bf89080855d0fa3fcb84b9c215 (patch)
tree4cac8c810e85abaa940528793fd7e261f7cd6130 /src/mesa/pipe/draw/draw_clip.c
parent044c19e6b347d13df70dbc9980cec8a464afe214 (diff)
Silence compiler warnings.
Diffstat (limited to 'src/mesa/pipe/draw/draw_clip.c')
-rw-r--r--src/mesa/pipe/draw/draw_clip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/pipe/draw/draw_clip.c b/src/mesa/pipe/draw/draw_clip.c
index 90bfb615683..7e5ceacdfea 100644
--- a/src/mesa/pipe/draw/draw_clip.c
+++ b/src/mesa/pipe/draw/draw_clip.c
@@ -116,7 +116,7 @@ static void interp( const struct clipper *clip,
const float *pos = dst->clip;
const float *scale = clip->stage.draw->viewport.scale;
const float *trans = clip->stage.draw->viewport.translate;
- const float oow = 1.0 / pos[3];
+ const float oow = 1.0f / pos[3];
dst->data[0][0] = pos[0] * oow * scale[0] + trans[0];
dst->data[0][1] = pos[1] * oow * scale[1] + trans[1];