Matteo Bruni (@Mystral) commented about dlls/d3dx9_36/d3dx_helpers.c:
assert(format->bits[1]); *dst_component = dst->value.x; }
else if (dst_ctype == CTYPE_SHILO)
{
float cx_val;
assert(format->bits[1] && format->bits[2] && c == 3);
cx_val = 1.0f - powf(dst->value.x, 2.0f) - powf(dst->value.y, 2.0f);
I'd just do it like: ```suggestion:-0+0 cx_val = 1.0f - dst->value.x * dst->value.x - dst->value.y * dst->value.y; ``` Unless there is some reason not to?