Enable depth writing for a few places where it wasn't previously.
Also fixed some line endings.