Fix promotion of floats to doubles
[mesa.git] / src / gallium / drivers / softpipe / sp_tex_sample.c
index d3f67c6426c5619db36980f68df918725651d62c..5a0ec40d9c8632e2ecc8f25e6a6075b902d2a9fa 100644 (file)
@@ -2320,7 +2320,7 @@ create_filter_table(void)
       for (i = 0; i < WEIGHT_LUT_SIZE; ++i) {
          const float alpha = 2;
          const float r2 = (float) i / (float) (WEIGHT_LUT_SIZE - 1);
-         const float weight = (float) exp(-alpha * r2);
+         const float weight = (float) expf(-alpha * r2);
          lut[i] = weight;
       }
       weightLut = lut;