Added depth buffer clearing.