wined3d: Clear device state in wined3d_device_reset.