Fix resize the window correctly on dx9 backend

Maybe, we need to release some more resources when reset the device.