Adjust VertexBuffer::addBatch to please VC++.

(cherry picked from commit a5a03cc7b77657ad510ccd9eb612b796f761846f)
Reintroduce the hidden line pass to resolve #3799

Has been previously removed in a29b8ee725582665a792388a4ffc433f296c78e0.

(cherry picked from commit e7a9a669bb22f6a374d111f37df5644a44b1dffc)