Now using my own depth buffer, working excellently.