just a bunch of d3d9 state tracker patches