Matteo Bruni (@Mystral) commented about dlls/d3d10/effect.c:
- for (i = 0; i < instr->comp_count; ++i)
*retval += args[0][instr->scalar ? 0 : i] * args[1][i];
+}
+static void pres_dotswiz(float **args, unsigned int n, const struct preshader_instr *instr) +{
- float *retval = args[--n];
- unsigned int i;
- *retval = 0.0f;
- if (n != 6 && n != 8)
- {
WARN("Unexpected argument count %u.\n", n);
return;
- }
In the same vein, here we could also make sure that component count is 1.