Perhaps the logic should make sure nearClip is always less than farClip?  Does the code assert when nearClip is larger than farClip?