summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/draw/draw_twoside.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_twoside.c
parent044c19e6b347d13df70dbc9980cec8a464afe214 (diff)
Silence compiler warnings.
Diffstat (limited to 'src/mesa/pipe/draw/draw_twoside.c')
-rw-r--r--src/mesa/pipe/draw/draw_twoside.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/pipe/draw/draw_twoside.c b/src/mesa/pipe/draw/draw_twoside.c
index 045109dae0..d7d993841b 100644
--- a/src/mesa/pipe/draw/draw_twoside.c
+++ b/src/mesa/pipe/draw/draw_twoside.c
@@ -55,7 +55,7 @@ static void twoside_begin( struct draw_stage *stage )
* if the triangle is back-facing (negative).
* sign = -1 for CCW, +1 for CW
*/
- twoside->sign = (stage->draw->setup.front_winding == PIPE_WINDING_CCW) ? -1 : 1;
+ twoside->sign = (stage->draw->setup.front_winding == PIPE_WINDING_CCW) ? -1.0f : 1.0f;
stage->next->begin( stage->next );
}