gallium: Fix build on Windows.
authorMichal Krol <michal@tungstengraphics.com>
Thu, 24 Jan 2008 17:15:30 +0000 (18:15 +0100)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Sat, 26 Jan 2008 01:33:32 +0000 (10:33 +0900)
src/mesa/pipe/softpipe/sp_prim_setup.c

index 088d8a4c07e526af7e600f105ee52748be46d9b5..b17801d13da6d82fdf982592344386f6cd2b2d98 100644 (file)
@@ -551,7 +551,7 @@ static void setup_tri_coefficients( struct setup_stage *setup )
 
       if (fs->input_semantic_name[fragSlot] == TGSI_SEMANTIC_FOG) {
          /* FOG.y = front/back facing  XXX fix this */
-         setup->coef[fragSlot].a0[1] = 1 - setup->quad.facing;
+         setup->coef[fragSlot].a0[1] = 1.0f - setup->quad.facing;
          setup->coef[fragSlot].dadx[1] = 0.0;
          setup->coef[fragSlot].dady[1] = 0.0;
       }
@@ -806,7 +806,7 @@ setup_line_coefficients(struct setup_stage *setup, struct prim_header *prim)
 
       if (fs->input_semantic_name[fragSlot] == TGSI_SEMANTIC_FOG) {
          /* FOG.y = front/back facing  XXX fix this */
-         setup->coef[fragSlot].a0[1] = 1 - setup->quad.facing;
+         setup->coef[fragSlot].a0[1] = 1.0f - setup->quad.facing;
          setup->coef[fragSlot].dadx[1] = 0.0;
          setup->coef[fragSlot].dady[1] = 0.0;
       }
@@ -1029,7 +1029,7 @@ setup_point(struct draw_stage *stage, struct prim_header *prim)
 
       if (fs->input_semantic_name[fragSlot] == TGSI_SEMANTIC_FOG) {
          /* FOG.y = front/back facing  XXX fix this */
-         setup->coef[fragSlot].a0[1] = 1 - setup->quad.facing;
+         setup->coef[fragSlot].a0[1] = 1.0f - setup->quad.facing;
          setup->coef[fragSlot].dadx[1] = 0.0;
          setup->coef[fragSlot].dady[1] = 0.0;
       }