From baffd743b95f09c3b2e06c13e07f43eb052233c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Fri, 21 Dec 2018 18:02:22 -0800 Subject: [PATCH] Cleanup. --- src/image.cpp | 2 +- src/image_cubemap_filter.cpp | 2 +- tools/texturec/texturec.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/image.cpp b/src/image.cpp index 861b4b5..59ea28f 100644 --- a/src/image.cpp +++ b/src/image.cpp @@ -928,7 +928,7 @@ namespace bimg xyz[1] += rgba1[5]; xyz[2] += rgba1[6]; - bx::store(dst, bx::normalize(bx::load(xyz) ) ); + bx::store(dst, bx::normalize(bx::load(xyz) ) ); } } } diff --git a/src/image_cubemap_filter.cpp b/src/image_cubemap_filter.cpp index 6de9f94..9dec756 100644 --- a/src/image_cubemap_filter.cpp +++ b/src/image_cubemap_filter.cpp @@ -978,7 +978,7 @@ namespace bimg { const float* normal = (const float*)&nsaMip.m_data[(yy*nsaMip.m_width+xx)*(nsaMip.m_bpp/8)]; const float solidAngle = normal[3]; - const float ndotl = bx::clamp(bx::dot(bx::load(normal), _dir), 0.0f, 1.0f); + const float ndotl = bx::clamp(bx::dot(bx::load(normal), _dir), 0.0f, 1.0f); if (ndotl >= _specularAngle) { diff --git a/tools/texturec/texturec.cpp b/tools/texturec/texturec.cpp index ab96cd1..b216ffa 100644 --- a/tools/texturec/texturec.cpp +++ b/tools/texturec/texturec.cpp @@ -90,7 +90,7 @@ 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) { - const bx::Vec3 xyz = bx::load(rgba); + const bx::Vec3 xyz = bx::load(rgba); bx::store(dst, bx::normalize(xyz) ); } }