From 756a62fc02df68c06329287cbcdf733e62c95a72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Mon, 10 Dec 2018 20:43:01 -0800 Subject: [PATCH] Cleanup. --- tools/texturec/texturec.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tools/texturec/texturec.cpp b/tools/texturec/texturec.cpp index b9ea4a2..848e136 100644 --- a/tools/texturec/texturec.cpp +++ b/tools/texturec/texturec.cpp @@ -90,12 +90,8 @@ void imageRgba32fNormalize(void* _dst, uint32_t _width, uint32_t _height, uint32 const float* rgba = (const float*)&src[0]; for (uint32_t xx = 0; xx < _width; ++xx, rgba += 4, dst += 16) { - float xyz[3]; - - xyz[0] = rgba[0]; - xyz[1] = rgba[1]; - xyz[2] = rgba[2]; - bx::vec3Norm( (float*)dst, xyz); + const bx::Vec3 xyz = bx::load(rgba); + bx::store(dst, bx::normalize(xyz) ); } } }