Remove the depth pass. Instead use a final composite FBO which shares the same depth attachment of the g-buffer to do depth testing.