Nozomi Kodama nozomi.kodama@yahoo.com writes:
@@ -1971,11 +1971,13 @@ FLOAT *WINAPI D3DXFloat16To32Array(FLOAT *pout, CONST D3DXFLOAT16 *pin, UINT n)
FLOAT* WINAPI D3DXSHAdd(FLOAT *out, UINT order, const FLOAT *a, const FLOAT *b) {
- UINT i;
UINT i, sq_order;
TRACE("out %p, order %u, a %p, b %p\n", out, order, a, b);
- for (i = 0; i < order * order; i++)
- sq_order = order * order;
- for (i = 0; i < sq_order; i++) out[i] = a[i] + b[i];
There's no reason to do that.