Corrected near/far plane clipping logic in CanvasRenderer.

Fixes #2890