summaryrefslogtreecommitdiff
path: root/src/mesa/main/texcompress_fxt1.c
diff options
context:
space:
mode:
authorDaniel Borca <dborca@users.sourceforge.net>2004-11-15 08:04:33 +0000
committerDaniel Borca <dborca@users.sourceforge.net>2004-11-15 08:04:33 +0000
commit37918cf3d9b75fe924d05e2c8c80216c3f2c6944 (patch)
treee6938156d27a3e1d1865a370348e30f203620bb5 /src/mesa/main/texcompress_fxt1.c
parentfd9b30750a0690a1fd13fcddb9141cdcaa61b117 (diff)
use float constants
Diffstat (limited to 'src/mesa/main/texcompress_fxt1.c')
-rw-r--r--src/mesa/main/texcompress_fxt1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/texcompress_fxt1.c b/src/mesa/main/texcompress_fxt1.c
index d22f238af5..b3707fcffc 100644
--- a/src/mesa/main/texcompress_fxt1.c
+++ b/src/mesa/main/texcompress_fxt1.c
@@ -857,13 +857,13 @@ fxt1_quantize_ALPHA1 (unsigned long *cc,
for (j = n_vect - 1; j >= 0; j--) {
/* add in alphas */
FX64_SHL(hi, 5);
- FX64_OR32(hi, (unsigned int)(vec[j][ACOMP] / 8.0));
+ FX64_OR32(hi, (unsigned int)(vec[j][ACOMP] / 8.0F));
}
for (j = n_vect - 1; j >= 0; j--) {
for (i = 0; i < n_comp - 1; i++) {
/* add in colors */
FX64_SHL(hi, 5);
- FX64_OR32(hi, (unsigned int)(vec[j][i] / 8.0));
+ FX64_OR32(hi, (unsigned int)(vec[j][i] / 8.0F));
}
}
((Fx64 *)cc)[1] = hi;
@@ -1358,7 +1358,7 @@ fxt1_encode (unsigned int width, unsigned int height, int comps,
int newHeight = (height + 3) & ~3;
newSource = malloc(comps * newWidth * newHeight * sizeof(unsigned char *));
_mesa_upscale_teximage2d(width, height, newWidth, newHeight,
- comps, source, srcRowStride, newSource);
+ comps, source, srcRowStride, newSource);
source = newSource;
width = newWidth;
height = newHeight;