Mesa (mesa_7_5_branch): util: Single precision constants.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Wed Jun 10 14:42:20 UTC 2009


Module: Mesa
Branch: mesa_7_5_branch
Commit: 4d16eb5e180734638fac38a8ce88541926f75c21
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4d16eb5e180734638fac38a8ce88541926f75c21

Author: José Fonseca <jfonseca at vmware.com>
Date:   Wed Jun 10 15:39:47 2009 +0100

util: Single precision constants.

---

 src/gallium/auxiliary/util/u_gen_mipmap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_gen_mipmap.c b/src/gallium/auxiliary/util/u_gen_mipmap.c
index 6fa13a8..ca79748 100644
--- a/src/gallium/auxiliary/util/u_gen_mipmap.c
+++ b/src/gallium/auxiliary/util/u_gen_mipmap.c
@@ -1385,7 +1385,7 @@ set_vertex_data(struct gen_mipmap_state *ctx,
           * Not +/-1 to avoid cube face selection ambiguity near the edges,
           * though that can still sometimes happen with this scale factor...
           */
-         const float scale = 0.9999;
+         const float scale = 0.9999f;
          const float sc = (2.0f * st[i][0] - 1.0f) * scale;
          const float tc = (2.0f * st[i][1] - 1.0f) * scale;
 




More information about the mesa-commit mailing list