[PATCH v5 6/9] ddraw: Store wined3d state in d3d_device.