Update changelog
Remove compiler warnings
This commit is contained in:
parent
13335f3d97
commit
6339a585e2
@ -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.
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user