Fix the bug happening on mac due to order in which parmaeters are evaluated for all of the gl calls, now fixed with an order independant code
FIxing the merge
Improve comment regarding the replacement of the QGLProgram->bind()
Merge pull request #3642 from samcake/temp0

Bring back the GL batching for model rendering and fixed the bug on MAC