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) ); } }