Fixed Direct3D9 constant lookup.