Fixed D3D9 bug on WindowsXP.