Mesa (master): meta: add 'f' suffix to floats to silence some MSVC warnings

Brian Paul brianp at kemper.freedesktop.org
Thu Jan 17 00:08:11 UTC 2013


Module: Mesa
Branch: master
Commit: 09154c274c720815b642970bf3861413d0fbef92
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=09154c274c720815b642970bf3861413d0fbef92

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Jan 16 08:25:43 2013 -0700

meta: add 'f' suffix to floats to silence some MSVC warnings

---

 src/mesa/drivers/common/meta.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c
index e25481e..4e32b50 100644
--- a/src/mesa/drivers/common/meta.c
+++ b/src/mesa/drivers/common/meta.c
@@ -4126,7 +4126,7 @@ _mesa_meta_DrawTex(struct gl_context *ctx, GLfloat x, GLfloat y, GLfloat z,
       const GLfloat x1 = x + width;
       const GLfloat y1 = y + height;
 
-      z = CLAMP(z, 0.0, 1.0);
+      z = CLAMP(z, 0.0f, 1.0f);
       z = invert_z(z);
 
       verts[0].x = x;




More information about the mesa-commit mailing list