diff options
author | Brian Paul <[email protected]> | 2010-01-27 17:00:32 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-01-27 17:04:30 -0700 |
commit | 880411c72aee7c0ec81366bdf6ab8cf25bebb9d5 (patch) | |
tree | d5ad4af21a0e59bfee2ea3bec9b58ca9db130fd9 /src/mesa/swrast/s_context.c | |
parent | 4e5364d6fcd63b6f927ac4fb76effec0007d6797 (diff) |
swrast: silence double->float assignment warnings
Reported by Karl Schultz.
Diffstat (limited to 'src/mesa/swrast/s_context.c')
-rw-r--r-- | src/mesa/swrast/s_context.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c index f9092c215a7..0d4680db9f7 100644 --- a/src/mesa/swrast/s_context.c +++ b/src/mesa/swrast/s_context.c @@ -149,26 +149,26 @@ _swrast_update_polygon( GLcontext *ctx ) if (ctx->Polygon.CullFlag) { switch (ctx->Polygon.CullFaceMode) { case GL_BACK: - backface_sign = -1.0; + backface_sign = -1.0F; break; case GL_FRONT: - backface_sign = 1.0; + backface_sign = 1.0F; break; case GL_FRONT_AND_BACK: /* fallthrough */ default: - backface_sign = 0.0; + backface_sign = 0.0F; } } else { - backface_sign = 0.0; + backface_sign = 0.0F; } SWRAST_CONTEXT(ctx)->_BackfaceCullSign = backface_sign; /* This is for front/back-face determination, but not for culling */ SWRAST_CONTEXT(ctx)->_BackfaceSign - = (ctx->Polygon.FrontFace == GL_CW) ? -1.0 : 1.0; + = (ctx->Polygon.FrontFace == GL_CW) ? -1.0F : 1.0F; } |