mrdoob/three.js — pull request #1014 by ekitson (2012-01-03 19:35:55+00:00)
Title: Bug where depth buffer may not be cleared

If the last object to be rendered on a render cycle sets depth writing to false, then on the next render cycle the call to clear the depth buffer isn't able to write the clear value to the buffer. This results in strange ghosting effects.

For some reason, I saw this issue on Firefox but not on Chrome. My guess is that between animation frames Chrome either clears the buffers for you or sets things like glDepthMask back to default.