Fix device reset for d3d9ex devices.