Update changelog

Remove compiler warnings
This commit is contained in:
castano 2007-09-15 07:11:59 +00:00
parent bc03cbf3d4
commit ed6afb0767
2 changed files with 6 additions and 3 deletions

View File

@ -28,4 +28,7 @@ NVIDIA Texture Tools version 0.9.4
NVIDIA Texture Tools version 0.9.5
* Fixed PSNR formula.
* Added support for arbitrary RGB formats.
* Add support for DXT1a.
* Refactor and improve compression quality of fast compressors.
* Add cmake scripts to detect processor and chose compiler options.

View File

@ -110,9 +110,9 @@ inline static void insetBBox(Vector3 * __restrict maxColor, Vector3 * __restrict
inline static uint16 roundAndExpand(Vector3 * v)
{
uint r = clamp(v->x() * (31.0f / 255.0f), 0.0f, 31.0f) + 0.5f;
uint g = clamp(v->y() * (63.0f / 255.0f), 0.0f, 63.0f) + 0.5f;
uint b = clamp(v->z() * (31.0f / 255.0f), 0.0f, 31.0f) + 0.5f;
uint r = uint(clamp(v->x() * (31.0f / 255.0f), 0.0f, 31.0f) + 0.5f);
uint g = uint(clamp(v->y() * (63.0f / 255.0f), 0.0f, 63.0f) + 0.5f);
uint b = uint(clamp(v->z() * (31.0f / 255.0f), 0.0f, 31.0f) + 0.5f);
uint16 w = (r << 11) | (g << 5) | b;