[Direct3D9] Fixed issue #143