Resolved issues with Direct3D 9