Fixed Direct3D 9.0 window resizing and lost device.