On 16 February 2010 11:49, Christian Costa <titan.costa at wanadoo.fr> wrote:
> - ERR("Undefined state.\n");
> + ERR("Undefined state %d\n", state);
Did you test this? "state" is supposed to be always 0. Also,
debug_d3dstate() is much more readable than the state number.