Fixed issue with depth clearing and 3D mode.