Set depth and color mask before clearing.