diff options
author | Karl Schultz <[email protected]> | 2002-10-18 17:02:00 +0000 |
---|---|---|
committer | Karl Schultz <[email protected]> | 2002-10-18 17:02:00 +0000 |
commit | 8eaa2902162e145cd07a9427ec99ab0ca85aa35a (patch) | |
tree | c7c9232d307178623242d1be57d6e1b0d186d986 /src/mesa/swrast/s_pointtemp.h | |
parent | 6ac04f2fc6e9a5448691df59495d680ddcc740c8 (diff) |
Add casts to quiet compiler warnings.
Diffstat (limited to 'src/mesa/swrast/s_pointtemp.h')
-rw-r--r-- | src/mesa/swrast/s_pointtemp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_pointtemp.h b/src/mesa/swrast/s_pointtemp.h index cf45dcde825..405e1f49243 100644 --- a/src/mesa/swrast/s_pointtemp.h +++ b/src/mesa/swrast/s_pointtemp.h @@ -1,4 +1,4 @@ -/* $Id: s_pointtemp.h,v 1.19 2002/10/04 17:37:47 brianp Exp $ */ +/* $Id: s_pointtemp.h,v 1.20 2002/10/18 17:02:01 kschultz Exp $ */ /* * Mesa 3-D graphics library @@ -117,7 +117,7 @@ NAME ( GLcontext *ctx, const SWvertex *vert ) for (u = 0; u < ctx->Const.MaxTextureUnits; u++) { if (ctx->Texture.Unit[u]._ReallyEnabled) { const GLfloat q = vert->texcoord[u][3]; - const GLfloat invQ = (q == 0.0 || q == 1.0) ? 1.0 : (1.0 / q); + const GLfloat invQ = (q == 0.0F || q == 1.0F) ? 1.0F : (1.0F / q); texcoord[u][0] = vert->texcoord[u][0] * invQ; texcoord[u][1] = vert->texcoord[u][1] * invQ; texcoord[u][2] = vert->texcoord[u][2] * invQ; |