Paul Gofman : ddraw: Store wined3d state in d3d_device.